Simple Question (Direct)
Simple Question
Q608071
P136
Q1792379
USER
What can be considered as category for Pterodactyl ?
(Q608071,P136,c(Q1792379))
action filter_type
action find
entity Q608071
relation P136
type Q1792379
['Q608071', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?b WHERE { resource:Q608071 property:P136 ?b . ?b rdf:type ontology:Q1792379 }
Pterodactyl
action filter_type
action find
entity Pterodactyl
relation genre
type art genre
['Pterodactyl', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?b WHERE { resource:Pterodactyl property:genre ?b . ?b rdf:type ontology:art_genre }
[]
art genre
Q471839 Q200092 Q188473
SYSTEM
science fiction film, horror film, action film
Q471839 Q200092 Q188473
(Q608071,P136,c(Q1792379))
action filter_type
action find
entity Q608071
relation P136
type Q1792379
[ANSWERS] can be considered as category for Pterodactyl
['Q608071', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?b WHERE { resource:Q608071 property:P136 ?b . ?b rdf:type ontology:Q1792379 }
science fiction film horror film action film
Science fiction film, horror film and action film can be considered as category for Pterodactyl
science fiction film horror film action film
action filter_type
action find
entity Pterodactyl
relation genre
type art genre
['Pterodactyl', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?b WHERE { resource:Pterodactyl property:genre ?b . ?b rdf:type ontology:art_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q608071
P495
Q15617994
USER
What is the country of origin of Pterodactyl ?
(Q608071,P495,c(Q15617994))
action filter_type
action find
entity Q608071
relation P495
type Q15617994
['Q608071', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q608071 property:P495 ?l . ?l rdf:type ontology:Q15617994 }
Pterodactyl
action filter_type
action find
entity Pterodactyl
relation country of origin
type designation for an administrative territorial entity
['Pterodactyl', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Pterodactyl property:country_of_origin ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q608071,P495,c(Q15617994))
action filter_type
action find
entity Q608071
relation P495
type Q15617994
The country of origin of Pterodactyl is the [ANSWER]
['Q608071', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q608071 property:P495 ?l . ?l rdf:type ontology:Q15617994 }
United States of America
The country of origin of Pterodactyl is the United States of America
United States of America
action filter_type
action find
entity Pterodactyl
relation country of origin
type designation for an administrative territorial entity
['Pterodactyl', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Pterodactyl property:country_of_origin ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q20175815
Q15617994
USER
And how about Fly Market?
(Q20175815,P495,c(Q15617994))
action filter_type
action find
entity Q20175815
relation P495
type Q15617994
['Q20175815', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q20175815 property:P495 ?p . ?p rdf:type ontology:Q15617994 }
Fly Market
action filter_type
action find
entity Fly Market
relation country of origin
type designation for an administrative territorial entity
['Fly Market', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Fly_Market property:country_of_origin ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q20175815,P495,c(Q15617994))
action filter_type
action find
entity Q20175815
relation P495
type Q15617994
[ANSWER]
['Q20175815', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q20175815 property:P495 ?p . ?p rdf:type ontology:Q15617994 }
United States of America
United States of America
action filter_type
action find
entity Fly Market
relation country of origin
type designation for an administrative territorial entity
['Fly Market', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Fly_Market property:country_of_origin ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q30 Q7690608 Q16007780
P6
Q502895
USER
Does that administrative territory have a government lead by Tchaenhotep and Joseph Nargba Cooper ?
(Q30,P6,Q7690608) (Q30,P6,Q16007780)
action is_in
entity Q30
action intersection
action find_reverse
entity Q7690608
relation P6
action find_reverse
entity Q16007780
relation P6
['Q30', 'P6', 'Q7690608'] ['Q30', 'P6', 'Q16007780']
ASK WHERE { resource:Q30 property:P6 resource:Q7690608 . resource:Q30 property:P6 resource:Q16007780 }
United States of America Tchaenhotep Joseph Nargba Cooper
action is_in
entity United States of America
action intersection
action find_reverse
entity Tchaenhotep
relation head of government
action find_reverse
entity Joseph Nargba Cooper
relation head of government
['United States of America', 'head of government', 'Tchaenhotep'] ['United States of America', 'head of government', 'Joseph Nargba Cooper']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Tchaenhotep . resource:United_States_of_America property:head_of_government resource:Joseph_Nargba_Cooper }
[]
common name
SYSTEM
NO
(Q30,P6,Q7690608) (Q30,P6,Q16007780)
action is_in
entity Q30
action intersection
action find_reverse
entity Q7690608
relation P6
action find_reverse
entity Q16007780
relation P6
[ANSWER]
['Q30', 'P6', 'Q7690608'] ['Q30', 'P6', 'Q16007780']
ASK WHERE { resource:Q30 property:P6 resource:Q7690608 . resource:Q30 property:P6 resource:Q16007780 }
No
action is_in
entity United States of America
action intersection
action find_reverse
entity Tchaenhotep
relation head of government
action find_reverse
entity Joseph Nargba Cooper
relation head of government
['United States of America', 'head of government', 'Tchaenhotep'] ['United States of America', 'head of government', 'Joseph Nargba Cooper']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Tchaenhotep . resource:United_States_of_America property:head_of_government resource:Joseph_Nargba_Cooper }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q1792379 Q56061 Q1792379
USER
How many art genres demonstrate atleast 1 art genres or administrative territories ?
(c(Q1792379),P180,c(Q1792379)|c(Q56061))
action count
action atleast
action union
action find_tuple_counts
relation P180
type Q1792379
type Q1792379
action find_tuple_counts
relation P180
type Q1792379
type Q56061
value 1
[{'concept': 'Q1792379'}, 'P180', [{'concept': 'Q1792379'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) ?v WHERE { { ?v property:P180 ?c . ?c rdf:type ontology:Q56061 . ?v rdf:type ontology:Q1792379 } UNION { ?v property:P180 ?c . ?v rdf:type ontology:Q1792379 . ?c rdf:type ontology:Q1792379 } } GROUP BY ?v } . FILTER ( ?s >= 1 ) }
action count
action atleast
action union
action find_tuple_counts
relation depicts
type art genre
type art genre
action find_tuple_counts
relation depicts
type art genre
type administrative territorial entity
value 1
[{'concept': 'art genre'}, 'depicts', [{'concept': 'art genre'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) ?v WHERE { { ?v property:depicts ?c . ?c rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:art_genre } UNION { ?v property:depicts ?c . ?v rdf:type ontology:art_genre . ?c rdf:type ontology:art_genre } } GROUP BY ?v } . FILTER ( ?s >= 1 ) }
[]
art genre administrative territorial entity art genre
SYSTEM
2
Q3362398 Q2963437
(c(Q1792379),P180,c(Q1792379)|c(Q56061))
action count
action atleast
action union
action find_tuple_counts
relation P180
type Q1792379
type Q1792379
action find_tuple_counts
relation P180
type Q1792379
type Q56061
value 1
[ANSWER]
[{'concept': 'Q1792379'}, 'P180', [{'concept': 'Q1792379'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) ?v WHERE { { ?v property:P180 ?c . ?c rdf:type ontology:Q56061 . ?v rdf:type ontology:Q1792379 } UNION { ?v property:P180 ?c . ?v rdf:type ontology:Q1792379 . ?c rdf:type ontology:Q1792379 } } GROUP BY ?v } . FILTER ( ?s >= 1 ) }
Panorama du Caire One Thousand Pictures of the Ocean (Chie no umi)
2
action count
action atleast
action union
action find_tuple_counts
relation depicts
type art genre
type art genre
action find_tuple_counts
relation depicts
type art genre
type administrative territorial entity
value 1
[{'concept': 'art genre'}, 'depicts', [{'concept': 'art genre'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) ?v WHERE { { ?v property:depicts ?c . ?c rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:art_genre } UNION { ?v property:depicts ?c . ?v rdf:type ontology:art_genre . ?c rdf:type ontology:art_genre } } GROUP BY ?v } . FILTER ( ?s >= 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q608071
P921
Q16521
USER
Which taxon was the main subject of Pterodactyl 's work ?
(Q608071,P921,c(Q16521))
action filter_type
action find
entity Q608071
relation P921
type Q16521
['Q608071', 'P921', {'concept': 'Q16521'}]
SELECT DISTINCT ?w WHERE { resource:Q608071 property:P921 ?w . ?w rdf:type ontology:Q16521 }
Pterodactyl
action filter_type
action find
entity Pterodactyl
relation main subject
type taxon
['Pterodactyl', 'main subject', {'concept': 'taxon'}]
SELECT DISTINCT ?w WHERE { resource:Pterodactyl property:main_subject ?w . ?w rdf:type ontology:taxon }
[]
taxon
Q430
SYSTEM
dinosaur
Q430
(Q608071,P921,c(Q16521))
action filter_type
action find
entity Q608071
relation P921
type Q16521
Y [ANSWER] was the main subject of Pterodactyl 's work
['Q608071', 'P921', {'concept': 'Q16521'}]
SELECT DISTINCT ?w WHERE { resource:Q608071 property:P921 ?w . ?w rdf:type ontology:Q16521 }
dinosaur
Y dinosaur was the main subject of Pterodactyl 's work
dinosaur
action filter_type
action find
entity Pterodactyl
relation main subject
type taxon
['Pterodactyl', 'main subject', {'concept': 'taxon'}]
SELECT DISTINCT ?w WHERE { resource:Pterodactyl property:main_subject ?w . ?w rdf:type ontology:taxon }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q608071
P364
Q34770
USER
Which language was used originally for the creation of that television program ?
(Q430,P364,c(Q34770))
action filter_type
action find
entity Q608071
relation P364
type Q34770
['Q430', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q608071 property:P364 ?b . ?b rdf:type ontology:Q34770 }
Pterodactyl
action filter_type
action find
entity Pterodactyl
relation original language of work
type language
['dinosaur', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Pterodactyl property:original_language_of_work ?b . ?b rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q430,P364,c(Q34770))
action filter_type
action find
entity Q608071
relation P364
type Q34770
[ANSWER] was used originally for the creation of that television program
['Q430', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q608071 property:P364 ?b . ?b rdf:type ontology:Q34770 }
English
English was used originally for the creation of that television program
English
action filter_type
action find
entity Pterodactyl
relation original language of work
type language
['dinosaur', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Pterodactyl property:original_language_of_work ?b . ?b rdf:type ontology:language }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2102194 Q30
P6 P58
Q502895
USER
Which people have United States of America as their heads of government or wrote the script for The Country Doctor ?
OR((Q30,P6,c(Q502895)), (Q2102194,P58,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q2102194
relation P58
type Q502895
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q2102194', 'P58', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . { { resource:Q30 property:P6 ?w } UNION { resource:Q2102194 property:P58 ?w } } }
The Country Doctor United States of America
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity The Country Doctor
relation screenwriter
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['The Country Doctor', 'screenwriter', {'concept': 'common name'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . { { resource:United_States_of_America property:head_of_government ?w } UNION { resource:The_Country_Doctor property:screenwriter ?w } } }
[]
common name
Q9640 Q51123 Q91 Q22686 Q9916 Q11896 Q9960 Q12312 Q35171 Q23
SYSTEM
Some of them are Lyndon B. Johnson, D. W. Griffith, Abraham Lincoln, Donald Trump, Dwight D. Eisenhower, Zachary Taylor, Ronald Reagan, Franklin Pierce, Grover Cleveland, George Washington
Q35171 Q11815 Q11816 Q11817 Q9588 Q11812 Q12306 Q91 Q12325 Q33866 Q35648 Q35498 Q9582 Q11869 Q207 Q11813 Q35236 Q23685 Q9696 Q22686 Q34597 Q36023 Q11881 Q9916 Q12312 Q11806 Q35286 Q9640 Q35686 Q11820 Q35678 Q51123 Q35041 Q34296 Q76 Q8612 Q34836 Q23505 Q23 Q1124 Q11613 Q11896 Q8007 Q9960 Q11891
OR((Q30,P6,c(Q502895)), (Q2102194,P58,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q2102194
relation P58
type Q502895
[ANSWERS] have United States of America as their heads of government or wrote the script for The Country Doctor
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q2102194', 'P58', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . { { resource:Q30 property:P6 ?w } UNION { resource:Q2102194 property:P58 ?w } } }
Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Richard Nixon Thomas Jefferson Millard Fillmore Abraham Lincoln James Buchanan Theodore Roosevelt William Howard Taft Chester A. Arthur Gerald Ford William Henry Harrison George W. Bush James Madison Herbert Hoover Jimmy Carter John F. Kennedy Donald Trump James A. Garfield Calvin Coolidge John Tyler Dwight D. Eisenhower Franklin Pierce John Adams Warren G. Harding Lyndon B. Johnson Rutherford B. Hayes Martin Van Buren Benjamin Harrison D. W. Griffith William McKinley Woodrow Wilson Barack Obama Andrew Johnson Ulysses S. Grant George H. W. Bush George Washington Bill Clinton Harry S. Truman Zachary Taylor Franklin Delano Roosevelt Ronald Reagan James K. Polk
Lyndon B. Johnson, D. W. Griffith, Abraham Lincoln, Donald Trump, Dwight D. Eisenhower, Zachary Taylor, Ronald Reagan, Franklin Pierce, Grover Cleveland and George Washington have United States of America as their heads of government or wrote the script for The Country Doctor
Lyndon B. Johnson D. W. Griffith Abraham Lincoln Donald Trump Dwight D. Eisenhower Zachary Taylor Ronald Reagan Franklin Pierce Grover Cleveland George Washington
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity The Country Doctor
relation screenwriter
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['The Country Doctor', 'screenwriter', {'concept': 'common name'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . { { resource:United_States_of_America property:head_of_government ?w } UNION { resource:The_Country_Doctor property:screenwriter ?w } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q22686
P138
Q18142 Q473972
USER
How many tower blocks and protected areas have Donald Trump as their toponym ?
(c(Q18142),P138,Q22686) (c(Q473972),P138,Q22686)
action count
action union
action filter_type
action find_reverse
entity Q22686
relation P138
type Q18142
action filter_type
action find_reverse
entity Q22686
relation P138
type Q473972
[{'concept': 'Q18142'}, 'P138', 'Q22686'] [{'concept': 'Q473972'}, 'P138', 'Q22686']
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { ?a property:P138 resource:Q22686 . ?a rdf:type ontology:Q18142 } UNION { ?a property:P138 resource:Q22686 . ?a rdf:type ontology:Q473972 } }
Donald Trump
action count
action union
action filter_type
action find_reverse
entity Donald Trump
relation named after
type tower block
action filter_type
action find_reverse
entity Donald Trump
relation named after
type protected area
[{'concept': 'tower block'}, 'named after', 'Donald Trump'] [{'concept': 'protected area'}, 'named after', 'Donald Trump']
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { ?a property:named_after resource:Donald_Trump . ?a rdf:type ontology:tower_block } UNION { ?a property:named_after resource:Donald_Trump . ?a rdf:type ontology:protected_area } }
[]
tower block protected area
SYSTEM
3 tower blocks and 1 protected areas
Q868772 Q218305 Q5294586 Q546221
(c(Q18142),P138,Q22686) (c(Q473972),P138,Q22686)
action count
action union
action filter_type
action find_reverse
entity Q22686
relation P138
type Q18142
action filter_type
action find_reverse
entity Q22686
relation P138
type Q473972
[ANSWER]
[{'concept': 'Q18142'}, 'P138', 'Q22686'] [{'concept': 'Q473972'}, 'P138', 'Q22686']
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { ?a property:P138 resource:Q22686 . ?a rdf:type ontology:Q18142 } UNION { ?a property:P138 resource:Q22686 . ?a rdf:type ontology:Q473972 } }
Trump Tower The Trump Building Donald J. Trump State Park Trump International Hotel and Tower
3 tower blocks and 1 protected areas
action count
action union
action filter_type
action find_reverse
entity Donald Trump
relation named after
type tower block
action filter_type
action find_reverse
entity Donald Trump
relation named after
type protected area
[{'concept': 'tower block'}, 'named after', 'Donald Trump'] [{'concept': 'protected area'}, 'named after', 'Donald Trump']
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { ?a property:named_after resource:Donald_Trump . ?a rdf:type ontology:tower_block } UNION { ?a property:named_after resource:Donald_Trump . ?a rdf:type ontology:protected_area } }
[]