Simple Question (Direct)
Simple Question
Q7729998
P495
Q15617994
USER
Which administrative territory is the origin of The Devil and Max Devlin ?
(Q7729998,P495,c(Q15617994))
action filter_type
action find
entity Q7729998
relation P495
type Q15617994
['Q7729998', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q7729998 property:P495 ?y . ?y rdf:type ontology:Q15617994 }
The Devil and Max Devlin
action filter_type
action find
entity The Devil and Max Devlin
relation country of origin
type designation for an administrative territorial entity
['The Devil and Max Devlin', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:The_Devil_and_Max_Devlin property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q7729998,P495,c(Q15617994))
action filter_type
action find
entity Q7729998
relation P495
type Q15617994
[ANSWER] is the origin of The Devil and Max Devlin
['Q7729998', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q7729998 property:P495 ?y . ?y rdf:type ontology:Q15617994 }
United States of America
United States of America is the origin of The Devil and Max Devlin
United States of America
action filter_type
action find
entity The Devil and Max Devlin
relation country of origin
type designation for an administrative territorial entity
['The Devil and Max Devlin', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:The_Devil_and_Max_Devlin property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7729998
P750
Q43229
USER
Who is the distributor of that work of art ?
(Q30,P750,c(Q43229))
action filter_type
action find
entity Q7729998
relation P750
type Q43229
['Q30', 'P750', {'concept': 'Q43229'}]
SELECT DISTINCT ?b WHERE { resource:Q7729998 property:P750 ?b . ?b rdf:type ontology:Q43229 }
The Devil and Max Devlin
action filter_type
action find
entity The Devil and Max Devlin
relation distributor
type organization
['United States of America', 'distributor', {'concept': 'organization'}]
SELECT DISTINCT ?b WHERE { resource:The_Devil_and_Max_Devlin property:distributor ?b . ?b rdf:type ontology:organization }
[]
organization
Q1323594
SYSTEM
Walt Disney Studios Motion Pictures
Q1323594
(Q30,P750,c(Q43229))
action filter_type
action find
entity Q7729998
relation P750
type Q43229
The distributor of that work of art is the [ANSWER]
['Q30', 'P750', {'concept': 'Q43229'}]
SELECT DISTINCT ?b WHERE { resource:Q7729998 property:P750 ?b . ?b rdf:type ontology:Q43229 }
Walt Disney Studios Motion Pictures
The distributor of that work of art is the Walt Disney Studios Motion Pictures
Walt Disney Studios Motion Pictures
action filter_type
action find
entity The Devil and Max Devlin
relation distributor
type organization
['United States of America', 'distributor', {'concept': 'organization'}]
SELECT DISTINCT ?b WHERE { resource:The_Devil_and_Max_Devlin property:distributor ?b . ?b rdf:type ontology:organization }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P272
Q43229 Q201658
USER
How many organizations produced less number of film genres than that organization ?
(c(Q201658),P272,c(Q43229))
action count
action less
action find_tuple_counts
relation P272
type Q43229
type Q201658
action count
action filter_type
action find
entity Q1323594
relation P272
type Q43229
[{'concept': 'Q201658'}, 'P272', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?q ) AS ?h ) WHERE { ?p property:P272 ?q . ?p rdf:type ontology:Q43229 . ?q rdf:type ontology:Q201658 } GROUP BY ?p } . FILTER ( ?h < ?b ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) WHERE { resource:Q1323594 property:P272 ?c . ?c rdf:type ontology:Q43229 } } }
action count
action less
action find_tuple_counts
relation production company
type organization
type film genre
action count
action filter_type
action find
entity Walt Disney Studios Motion Pictures
relation production company
type organization
[{'concept': 'film genre'}, 'production company', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?q ) AS ?h ) WHERE { ?p property:production_company ?q . ?p rdf:type ontology:organization . ?q rdf:type ontology:film_genre } GROUP BY ?p } . FILTER ( ?h < ?b ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) WHERE { resource:Walt_Disney_Studios_Motion_Pictures property:production_company ?c . ?c rdf:type ontology:organization } } }
[]
organization film genre
SYSTEM
0
(c(Q201658),P272,c(Q43229))
action count
action less
action find_tuple_counts
relation P272
type Q43229
type Q201658
action count
action filter_type
action find
entity Q1323594
relation P272
type Q43229
[ANSWER]
[{'concept': 'Q201658'}, 'P272', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?q ) AS ?h ) WHERE { ?p property:P272 ?q . ?p rdf:type ontology:Q43229 . ?q rdf:type ontology:Q201658 } GROUP BY ?p } . FILTER ( ?h < ?b ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) WHERE { resource:Q1323594 property:P272 ?c . ?c rdf:type ontology:Q43229 } } }
0
action count
action less
action find_tuple_counts
relation production company
type organization
type film genre
action count
action filter_type
action find
entity Walt Disney Studios Motion Pictures
relation production company
type organization
[{'concept': 'film genre'}, 'production company', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?q ) AS ?h ) WHERE { ?p property:production_company ?q . ?p rdf:type ontology:organization . ?q rdf:type ontology:film_genre } GROUP BY ?p } . FILTER ( ?h < ?b ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) WHERE { resource:Walt_Disney_Studios_Motion_Pictures property:production_company ?c . ?c rdf:type ontology:organization } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P138
Q2221906
USER
Which geographic location is the origin of United States of America ?
(Q30,P138,c(Q2221906))
action filter_type
action find
entity Q30
relation P138
type Q2221906
['Q30', 'P138', {'concept': 'Q2221906'}]
SELECT DISTINCT ?q WHERE { resource:Q30 property:P138 ?q . ?q rdf:type ontology:Q2221906 }
United States of America
action filter_type
action find
entity United States of America
relation named after
type geographic location
['United States of America', 'named after', {'concept': 'geographic location'}]
SELECT DISTINCT ?q WHERE { resource:United_States_of_America property:named_after ?q . ?q rdf:type ontology:geographic_location }
[]
geographic location
Q828
SYSTEM
Americas
Q828
(Q30,P138,c(Q2221906))
action filter_type
action find
entity Q30
relation P138
type Q2221906
Are [ANSWER] is the origin of United States of America
['Q30', 'P138', {'concept': 'Q2221906'}]
SELECT DISTINCT ?q WHERE { resource:Q30 property:P138 ?q . ?q rdf:type ontology:Q2221906 }
Americas
Are Americas is the origin of United States of America
Americas
action filter_type
action find
entity United States of America
relation named after
type geographic location
['United States of America', 'named after', {'concept': 'geographic location'}]
SELECT DISTINCT ?q WHERE { resource:United_States_of_America property:named_after ?q . ?q rdf:type ontology:geographic_location }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P706
Q56061 Q2221906
USER
Which administrative territories are the location where min number of geographic locations are located ?
(c(Q2221906),P706,Q1073089)
action argmin
action find_reverse_tuple_counts
relation P706
type Q56061
type Q2221906
[{'concept': 'Q2221906'}, 'P706', 'Q1073089']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?m ) { SELECT DISTINCT ?c ( COUNT ( ?w ) AS ?o ) WHERE { ?w property:P706 ?c . ?c rdf:type ontology:Q56061 . ?w rdf:type ontology:Q2221906 } GROUP BY ?c } } . { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?a ) WHERE { ?i rdf:type ontology:Q56061 . ?h rdf:type ontology:Q2221906 . ?h property:P706 ?i } GROUP BY ?i } . FILTER ( ?a = ?m ) }
action argmin
action find_reverse_tuple_counts
relation located on terrain feature
type administrative territorial entity
type geographic location
[{'concept': 'geographic location'}, 'located on terrain feature', 'Chimanimani']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?m ) { SELECT DISTINCT ?c ( COUNT ( ?w ) AS ?o ) WHERE { ?w property:located_on_terrain_feature ?c . ?c rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:geographic_location } GROUP BY ?c } } . { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?a ) WHERE { ?i rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:geographic_location . ?h property:located_on_terrain_feature ?i } GROUP BY ?i } . FILTER ( ?a = ?m ) }
[]
administrative territorial entity geographic location
Q649 Q2807 Q8678
SYSTEM
Moscow, Madrid, Rio de Janeiro
Q1715 Q644023 Q12317764 Q10861438 Q211073 Q4965978 Q486580 Q203995 Q322361 Q1025947 Q3711 Q21176 Q138901 Q3413022 Q406 Q1135211 Q612 Q8678 Q309355 Q7107283 Q663011 Q20085877 Q727 Q649 Q6515984 Q1479 Q836960 Q3219865 Q72499 Q23436 Q26087 Q1085963 Q463937 Q368275 Q707345 Q572041 Q3141 Q586 Q672395 Q569685 Q5689172 Q1919093 Q1373658 Q904462 Q237 Q2255839 Q12994 Q2807 Q932302 Q2066 Q156858 Q1754 Q706005 Q1622641 Q13153 Q200707 Q14452 Q1850 Q6276922 Q212040 Q515 Q2428809 Q853946 Q2703446 Q90 Q16635 Q123076 Q25231 Q1741 Q913663 Q1748 Q1016709 Q3286039 Q1223508 Q84 Q2132 Q7880 Q24639 Q1553054 Q1921029 Q81046 Q155863 Q2622689 Q1218 Q7230430 Q10667337 Q1567229 Q2577744 Q3172924 Q516474 Q4942522 Q1014221 Q740149 Q16536070 Q214178 Q6958544 Q3295876 Q539579 Q25396 Q1043368 Q436691 Q815893 Q1476222 Q831527 Q2536868 Q1017 Q11998785 Q244289 Q780785 Q325455 Q15377091 Q1333951 Q1929484 Q191607 Q1042366 Q189059 Q27168 Q1014699 Q14947358 Q745121 Q1073089
(c(Q2221906),P706,Q1073089)
action argmin
action find_reverse_tuple_counts
relation P706
type Q56061
type Q2221906
[ANSWERS] are the location where min number of geographic locations are located
[{'concept': 'Q2221906'}, 'P706', 'Q1073089']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?m ) { SELECT DISTINCT ?c ( COUNT ( ?w ) AS ?o ) WHERE { ?w property:P706 ?c . ?c rdf:type ontology:Q56061 . ?w rdf:type ontology:Q2221906 } GROUP BY ?c } } . { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?a ) WHERE { ?i rdf:type ontology:Q56061 . ?h rdf:type ontology:Q2221906 . ?h property:P706 ?i } GROUP BY ?i } . FILTER ( ?a = ?m ) }
Hanover Troy Grove Højer Svay Rieng Matadi Brickell Key Pedra de Lume Southend-on-Sea Ribe Watson Lake Belgrade Viborg Livermore Quartier-d'Orléans Istanbul Agios Konstantinos, East Attica Dubai Rio de Janeiro Kikinda Osney Hadsund Mullumbimby Amsterdam Moscow Setskog Bordeaux Rødding Laurium Mediterranean Basin Edinburgh Tromsø Franklin Saint Thomas Spetses Padborg Antequera Melbourne Bonn Thurø Griesheim Head Lake, Ontario Melby Charlottenlund Riddarholmen Vatican City Uitkerke Bruges Madrid Dingle Essen Struga Stockholm Friedrichstadt Mount Macedon Ronda Takamatsu Easter Island Phnom Penh Jordan River, British Columbia Stóra Dímun city Champagne Girsu Eskilstrup Paris Guam Palmyra Atoll Svalbard Vienna Bridge of Orchy Copenhagen Mokra Gora Manndalen Ohrid London Victoria Toulouse Vancouver Gudhjem Menzenschwand Charleroi Kronstadt Skærbæk Jerusalem Porsön Sickla Tornquist Zone Ingarö Løgumkloster Groß-Umstadt Bonnyrigg Konitsa Södermalm Careil Nablus Nagarbhavi Martinique, Nova Scotia Groß-Bieberau Bonaire Stora Essingen Altenberg Bellelay Sehel Island Djurgården Werbomont Aachen Rådal Athis-Mons Långholmen Yitzhar Clausthal Elstorf Klejtrup Podolia Lilla Essingen Mytilene Randers Demir Kapija Sommerfeld Alsace Wine Region Chimanimani
Moscow, Madrid and Rio de Janeiro are the location where min number of geographic locations are located
Moscow Madrid Rio de Janeiro
action argmin
action find_reverse_tuple_counts
relation located on terrain feature
type administrative territorial entity
type geographic location
[{'concept': 'geographic location'}, 'located on terrain feature', 'Chimanimani']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?m ) { SELECT DISTINCT ?c ( COUNT ( ?w ) AS ?o ) WHERE { ?w property:located_on_terrain_feature ?c . ?c rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:geographic_location } GROUP BY ?c } } . { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?a ) WHERE { ?i rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:geographic_location . ?h property:located_on_terrain_feature ?i } GROUP BY ?i } . FILTER ( ?a = ?m ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q649
P237
Q17335294
USER
Which coat of arms serves as the ensign for that administrative territory ?
(Q649,P237,c(Q17335294))
action filter_type
action find
entity Q649
relation P237
type Q17335294
['Q649', 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q17335294 . resource:Q649 property:P237 ?b }
Moscow
action filter_type
action find
entity Moscow
relation coat of arms
type flag or coat of arms
['Moscow', 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:flag_or_coat_of_arms . resource:Moscow property:coat_of_arms ?b }
[]
flag or coat of arms
Clarification for simple ques.
Q8678
SYSTEM
Did you mean Rio de Janeiro ?
Q649 Q2807 Q8678
(Q649,P237,c(Q17335294)) (Q2807,P237,c(Q17335294)) (Q8678,P237,c(Q17335294))
[ANSWER]
['Q649', 'P237', {'concept': 'Q17335294'}] ['Q2807', 'P237', {'concept': 'Q17335294'}] ['Q8678', 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q17335294 . resource:Q649 property:P237 ?b }
Moscow Madrid Rio de Janeiro
Did you mean Rio de Janeiro ?
Rio de Janeiro
['Moscow', 'coat of arms', {'concept': 'flag or coat of arms'}] ['Madrid', 'coat of arms', {'concept': 'flag or coat of arms'}] ['Rio de Janeiro', 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:flag_or_coat_of_arms . resource:Moscow property:coat_of_arms ?b }
[]
Simple Question (Coreferenced)
USER
No, I meant Moscow. Could you tell me the answer for that?
(Q649,P237,c(Q17335294))
Q649
['Q649', 'P237', {'concept': 'Q17335294'}]
['Moscow', 'coat of arms', {'concept': 'flag or coat of arms'}]
[]
Q2079384
SYSTEM
Coat of arms of Moscow
Q2079384
(Q649,P237,c(Q17335294))
action filter_type
action find
entity Q649
relation P237
type Q17335294
[ANSWER] serves as the ensign for that administrative territory
['Q649', 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q17335294 . resource:Q649 property:P237 ?b }
Coat of arms of Moscow
Coat of arms of Moscow serves as the ensign for that administrative territory
Coat of arms of Moscow
action filter_type
action find
entity Moscow
relation coat of arms
type flag or coat of arms
['Moscow', 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:flag_or_coat_of_arms . resource:Moscow property:coat_of_arms ?b }
[]