Simple Question (Direct)
Simple Question
Q19754377
P21
Q290
USER
Which sex does Froł Agafonow have ?
(Q19754377,P21,c(Q290))
action filter_type
action find
entity Q19754377
relation P21
type Q290
['Q19754377', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q19754377 property:P21 ?i . ?i rdf:type ontology:Q290 }
Froł Agafonow
action filter_type
action find
entity Froł Agafonow
relation gender
type sex
['Froł Agafonow', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Froł_Agafonow property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q19754377,P21,c(Q290))
action filter_type
action find
entity Q19754377
relation P21
type Q290
Froł Agafonow has a [ANSWER]
['Q19754377', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q19754377 property:P21 ?i . ?i rdf:type ontology:Q290 }
male
Froł Agafonow has a male
male
action filter_type
action find
entity Froł Agafonow
relation gender
type sex
['Froł Agafonow', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Froł_Agafonow property:gender ?i . ?i rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19754377
P607
Q1190554
USER
Which battle did Froł Agafonow take part in ?
(Q19754377,P607,c(Q1190554))
action filter_type
action find
entity Q19754377
relation P607
type Q1190554
['Q19754377', 'P607', {'concept': 'Q1190554'}]
SELECT DISTINCT ?p WHERE { resource:Q19754377 property:P607 ?p . ?p rdf:type ontology:Q1190554 }
Froł Agafonow
action filter_type
action find
entity Froł Agafonow
relation conflict
type event
['Froł Agafonow', 'conflict', {'concept': 'event'}]
SELECT DISTINCT ?p WHERE { resource:Froł_Agafonow property:conflict ?p . ?p rdf:type ontology:event }
[]
event
Q2305266
SYSTEM
Soviet invasion of Poland
Q2305266
(Q19754377,P607,c(Q1190554))
action filter_type
action find
entity Q19754377
relation P607
type Q1190554
Froł Agafonow took part in [ANSWER]
['Q19754377', 'P607', {'concept': 'Q1190554'}]
SELECT DISTINCT ?p WHERE { resource:Q19754377 property:P607 ?p . ?p rdf:type ontology:Q1190554 }
Soviet invasion of Poland
Froł Agafonow took part in Soviet invasion of Poland
Soviet invasion of Poland
action filter_type
action find
entity Froł Agafonow
relation conflict
type event
['Froł Agafonow', 'conflict', {'concept': 'event'}]
SELECT DISTINCT ?p WHERE { resource:Froł_Agafonow property:conflict ?p . ?p rdf:type ontology:event }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6794854
Q1190554
USER
And what about Max Herzbach?
(Q6794854,P607,c(Q1190554))
action filter_type
action find
entity Q6794854
relation P607
type Q1190554
['Q6794854', 'P607', {'concept': 'Q1190554'}]
SELECT DISTINCT ?g WHERE { resource:Q6794854 property:P607 ?g . ?g rdf:type ontology:Q1190554 }
Max Herzbach
action filter_type
action find
entity Max Herzbach
relation conflict
type event
['Max Herzbach', 'conflict', {'concept': 'event'}]
SELECT DISTINCT ?g WHERE { resource:Max_Herzbach property:conflict ?g . ?g rdf:type ontology:event }
[]
event
Q694416
SYSTEM
Battle of Brześć Litewski
Q694416
(Q6794854,P607,c(Q1190554))
action filter_type
action find
entity Q6794854
relation P607
type Q1190554
[ANSWER]
['Q6794854', 'P607', {'concept': 'Q1190554'}]
SELECT DISTINCT ?g WHERE { resource:Q6794854 property:P607 ?g . ?g rdf:type ontology:Q1190554 }
Battle of Brześć Litewski
Battle of Brześć Litewski
action filter_type
action find
entity Max Herzbach
relation conflict
type event
['Max Herzbach', 'conflict', {'concept': 'event'}]
SELECT DISTINCT ?g WHERE { resource:Max_Herzbach property:conflict ?g . ?g rdf:type ontology:event }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6794854
P27
Q1048835
USER
Which political territory is that person a civilian of ?
(Q694416,P27,c(Q1048835))
action filter_type
action find
entity Q6794854
relation P27
type Q1048835
['Q694416', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q6794854 property:P27 ?g . ?g rdf:type ontology:Q1048835 }
Max Herzbach
action filter_type
action find
entity Max Herzbach
relation country of citizenship
type political territorial entity
['Battle of Brześć Litewski', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Max_Herzbach property:country_of_citizenship ?g . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q694416,P27,c(Q1048835))
action filter_type
action find
entity Q6794854
relation P27
type Q1048835
[ANSWER] is that person a civilian of
['Q694416', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q6794854 property:P27 ?g . ?g rdf:type ontology:Q1048835 }
Germany
Germany is that person a civilian of
Germany
action filter_type
action find
entity Max Herzbach
relation country of citizenship
type political territorial entity
['Battle of Brześć Litewski', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Max_Herzbach property:country_of_citizenship ?g . ?g rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6794854
P20
Q56061
USER
Where did that person die ?
(Q183,P20,c(Q56061))
action filter_type
action find
entity Q6794854
relation P20
type Q56061
['Q183', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . resource:Q6794854 property:P20 ?x }
Max Herzbach
action filter_type
action find
entity Max Herzbach
relation place of death
type administrative territorial entity
['Germany', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . resource:Max_Herzbach property:place_of_death ?x }
[]
administrative territorial entity
Q365
SYSTEM
Cologne
Q365
(Q183,P20,c(Q56061))
action filter_type
action find
entity Q6794854
relation P20
type Q56061
That person died in [ANSWER]
['Q183', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . resource:Q6794854 property:P20 ?x }
Cologne
That person died in Cologne
Cologne
action filter_type
action find
entity Max Herzbach
relation place of death
type administrative territorial entity
['Germany', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . resource:Max_Herzbach property:place_of_death ?x }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P1376
Q183366 Q7275
USER
How many territories or states have that administrative territory have their center of administration ?
(Q365,P1376,c(Q183366)) (Q365,P1376,c(Q7275)) (Q365,P1376,c(Q183366)) (Q365,P1376,c(Q7275))
action count
action union
action filter_type
action find
entity Q365
relation P1376
type Q183366
action filter_type
action find
entity Q365
relation P1376
type Q7275
['Q365', 'P1376', {'concept': 'Q183366'}] ['Q365', 'P1376', {'concept': 'Q7275'}] ['Q365', 'P1376', {'concept': 'Q183366'}] ['Q365', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { { resource:Q365 property:P1376 ?w . ?w rdf:type ontology:Q183366 } UNION { resource:Q365 property:P1376 ?w . ?w rdf:type ontology:Q7275 } }
action count
action union
action filter_type
action find
entity Cologne
relation capital of
type territory
action filter_type
action find
entity Cologne
relation capital of
type state
['Cologne', 'capital of', {'concept': 'territory'}] ['Cologne', 'capital of', {'concept': 'state'}] ['Cologne', 'capital of', {'concept': 'territory'}] ['Cologne', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { { resource:Cologne property:capital_of ?w . ?w rdf:type ontology:territory } UNION { resource:Cologne property:capital_of ?w . ?w rdf:type ontology:state } }
[]
territory state
SYSTEM
2
Q7904317 Q273025
(Q365,P1376,c(Q183366)) (Q365,P1376,c(Q7275)) (Q365,P1376,c(Q183366)) (Q365,P1376,c(Q7275))
action count
action union
action filter_type
action find
entity Q365
relation P1376
type Q183366
action filter_type
action find
entity Q365
relation P1376
type Q7275
[ANSWER]
['Q365', 'P1376', {'concept': 'Q183366'}] ['Q365', 'P1376', {'concept': 'Q7275'}] ['Q365', 'P1376', {'concept': 'Q183366'}] ['Q365', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { { resource:Q365 property:P1376 ?w . ?w rdf:type ontology:Q183366 } UNION { resource:Q365 property:P1376 ?w . ?w rdf:type ontology:Q7275 } }
Electorate of Cologne Gallic Empire
2
action count
action union
action filter_type
action find
entity Cologne
relation capital of
type territory
action filter_type
action find
entity Cologne
relation capital of
type state
['Cologne', 'capital of', {'concept': 'territory'}] ['Cologne', 'capital of', {'concept': 'state'}] ['Cologne', 'capital of', {'concept': 'territory'}] ['Cologne', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { { resource:Cologne property:capital_of ?w . ?w rdf:type ontology:territory } UNION { resource:Cologne property:capital_of ?w . ?w rdf:type ontology:state } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q162890
P840
Q56061 Q838948 Q166142
USER
Which administrative territories are the narrative locations of more number of works of art and applications than Xanten ?
(c(Q838948)|c(Q166142),P840,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q838948
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q162890
relation P840
type Q838948
type Q166142
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) ?n WHERE { VALUES ( ?o ) { ( ontology:Q838948 ) ( ontology:Q166142 ) } . ?w rdf:type ?o } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { ?p property:P840 resource:Q162890 . { { ?p rdf:type ontology:Q838948 } UNION { ?p rdf:type ontology:Q166142 } } } } . FILTER ( ?g > ?d ) }
Xanten
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Xanten
relation narrative location
type work of art
type application
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) ?n WHERE { VALUES ( ?o ) { ( ontology:work_of_art ) ( ontology:application ) } . ?w rdf:type ?o } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { ?p property:narrative_location resource:Xanten . { { ?p rdf:type ontology:work_of_art } UNION { ?p rdf:type ontology:application } } } } . FILTER ( ?g > ?d ) }
[]
administrative territorial entity work of art application
Q1085 Q72 Q649
SYSTEM
Prague, Zürich, Moscow
Q1715 Q1183 Q3711 Q1874 Q331990 Q210292 Q25286 Q25287 Q2280 Q3805 Q501661 Q49233 Q1255278 Q42096 Q18808 Q4093 Q3659 Q16563 Q23337 Q8692 Q585 Q1425428 Q124739 Q1754 Q1022 Q90 Q101625 Q48320 Q80985 Q215646 Q597 Q690 Q257536 Q334 Q49272 Q12273 Q365 Q5836 Q12994 Q33935 Q54140 Q180294 Q8818 Q16555 Q1335 Q1891 Q9427 Q186237 Q5083 Q23154 Q1489 Q7094142 Q11864 Q83387 Q406 Q462799 Q8673 Q11703 Q2868 Q8678 Q495 Q36036 Q3703 Q208287 Q54212 Q23436 Q490584 Q3141 Q3630 Q17151 Q237 Q25416 Q16559 Q753121 Q16557 Q8686 Q994 Q35178 Q113546 Q3130 Q3037 Q1297 Q723329 Q1563 Q900 Q131491 Q1741 Q1748 Q26881 Q84 Q85 Q1737 Q37320 Q214178 Q45301 Q25395 Q34863 Q72 Q71 Q178168 Q16869 Q38022 Q172 Q270 Q2028 Q26887 Q184587 Q208472 Q79985 Q49243 Q1070 Q3590079 Q837165 Q41819 Q1861 Q5092 Q956 Q1555 Q1490 Q1491 Q1492 Q16562 Q437 Q387047 Q18419 Q1780 Q1781 Q690052 Q2073211 Q1851 Q2807 Q18705 Q3820 Q49149 Q1353 Q1352 Q1524 Q220 Q340 Q125434 Q25230 Q612 Q3305102 Q990168 Q1015727 Q24639 Q34713 Q1218 Q915 Q985531 Q193082 Q1020373 Q23070 Q1659757 Q26 Q1726 Q530090 Q34404 Q8717 Q3825 Q64 Q65 Q60 Q61 Q62 Q1757 Q18125 Q1867 Q5813 Q12439 Q126148 Q23556 Q837478 Q184345 Q13362 Q6106 Q495373 Q10313 Q42810 Q49255 Q3640 Q641 Q727 Q649 Q41621 Q3483936 Q158119 Q79848 Q1449 Q47048 Q1764 Q34932 Q2211 Q2704 Q47716 Q1040 Q100 Q374748 Q485172 Q26793 Q10686 Q165413 Q1574020 Q3992 Q3110 Q24826 Q1348 Q630533 Q1156 Q2751 Q41876 Q34647 Q1085
(c(Q838948)|c(Q166142),P840,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q838948
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q162890
relation P840
type Q838948
type Q166142
[ANSWERS] are the narrative locations of more number of works of art and applications than Xanten
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) ?n WHERE { VALUES ( ?o ) { ( ontology:Q838948 ) ( ontology:Q166142 ) } . ?w rdf:type ?o } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { ?p property:P840 resource:Q162890 . { { ?p rdf:type ontology:Q838948 } UNION { ?p rdf:type ontology:Q166142 } } } } . FILTER ( ?g > ?d ) }
Hanover Puerto Rico Belgrade Odessa Korean Demilitarized Zone Yozgat Uppsala Gothenburg Minsk Amman Schleswig Orlando Dragør Miryang Pyongyang Glasgow N'Djamena Memphis Salt Lake City Bilbao Oslo Newcastle upon Tyne Tijuana Stockholm Stuttgart Paris Marrakesh Kōbe Fes Edo Lisbon Delft Janesville Singapore Chandler Gijón Cologne Toledo Bruges Tel Aviv Salem Jaffa Valencia Houston Montevideo Bologna Timbuktu Joensuu Seattle Bristol Mexico City Onllwyn Junagadh Diyarbakır Istanbul Evanston Lagos United States Virgin Islands Lima Rio de Janeiro Turin Lviv Bamako Kauniainen Barnsley Edinburgh Flint Melbourne Jakarta Thessaloniki Vatican City Stavanger Austin Atacames Dallas Shanghai Tbilisi Kuwait City Blackeberg Sydney Kathmandu Chicago Ascot Havana Kazan Brighton Vienna Copenhagen Helsingør London Cairo Bregenz Cleveland Nablus Trabzon Newark Oklahoma City Zürich Geneva Mitrovica Constantinople St. Louis Toronto Warsaw Verona Davenport Grand Rapids Bingöl Kodiak Riverside Ahmedabad Hvidovre Hyrylä Kansas City Bangkok Baltimore Beijing Guatemala City Tokyo La Paz Barcelona El Paso Ljubljana Malibu Brooklyn Bratislava Budapest Trebinje Talamone Arkhangelsk Madrid Bajram Curri Beirut Nantucket Delhi Chennai Athens Rome Montreal Port Elizabeth Guernsey Dubai Tsamantas Keighley Mbale Vancouver Salzburg Jerusalem Perm Tulkarm Svishtov Jindabyne Sneek Gimli Northern Ireland Munich Jerichow New Orleans Seville Libreville Berlin Los Angeles New York City Washington, D.C. San Francisco Helsinki Manchester Taipei Canary Islands Detroit Tangier Atlanta Sabinov Viña del Mar Ferrara Portland Visalia Donostia/San Sebastián Le Havre Tampa Ankara Venice Amsterdam Moscow Haifa Sils Maria Ramallah Southampton Genoa Oulu Reykjavík Brisbane Malmö Pescara Charleston Karlsruhe Boston Jenin Ann Arbor Bergen Belfast Baikonur The Hamptons Liège San Salvador Liverpool Kolkata Tire Mumbai Siena Reims Johannesburg Prague
Prague, Zürich and Moscow are the narrative locations of more number of works of art and applications than Xanten
Prague Zürich Moscow
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Xanten
relation narrative location
type work of art
type application
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) ?n WHERE { VALUES ( ?o ) { ( ontology:work_of_art ) ( ontology:application ) } . ?w rdf:type ?o } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { ?p property:narrative_location resource:Xanten . { { ?p rdf:type ontology:work_of_art } UNION { ?p rdf:type ontology:application } } } } . FILTER ( ?g > ?d ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q49241
P840
Q56061 Q838948 Q166142
USER
And what about Lexington?
(c(Q838948)|c(Q166142),P840,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q838948
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q49241
relation P840
type Q838948
type Q166142
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) ?e WHERE { { ?e rdf:type ontology:Q56061 . ?w rdf:type ontology:Q838948 . ?w property:P840 ?e } UNION { ?w property:P840 ?e . ?w rdf:type ontology:Q166142 . ?e rdf:type ontology:Q56061 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { ?c property:P840 resource:Q49241 . { ?c rdf:type ?j . VALUES ( ?j ) { ( ontology:Q838948 ) ( ontology:Q166142 ) } } } } . FILTER ( ?y > ?v ) }
Lexington
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Lexington
relation narrative location
type work of art
type application
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) ?e WHERE { { ?e rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:work_of_art . ?w property:narrative_location ?e } UNION { ?w property:narrative_location ?e . ?w rdf:type ontology:application . ?e rdf:type ontology:administrative_territorial_entity } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { ?c property:narrative_location resource:Lexington . { ?c rdf:type ?j . VALUES ( ?j ) { ( ontology:work_of_art ) ( ontology:application ) } } } } . FILTER ( ?y > ?v ) }
[]
administrative territorial entity work of art application
Q1085 Q72 Q649
SYSTEM
Prague, Zürich, Moscow
Q1715 Q1183 Q3711 Q1874 Q331990 Q210292 Q25286 Q25287 Q2280 Q3805 Q501661 Q49233 Q1255278 Q42096 Q18808 Q4093 Q3659 Q16563 Q23337 Q8692 Q585 Q1425428 Q124739 Q1754 Q1022 Q90 Q101625 Q48320 Q80985 Q215646 Q597 Q690 Q257536 Q334 Q49272 Q12273 Q365 Q5836 Q12994 Q33935 Q54140 Q180294 Q8818 Q16555 Q1335 Q1891 Q9427 Q186237 Q5083 Q23154 Q1489 Q7094142 Q11864 Q83387 Q406 Q462799 Q8673 Q11703 Q2868 Q8678 Q495 Q36036 Q3703 Q208287 Q54212 Q23436 Q490584 Q3141 Q3630 Q17151 Q237 Q25416 Q16559 Q753121 Q16557 Q8686 Q994 Q35178 Q113546 Q3130 Q3037 Q1297 Q723329 Q1563 Q900 Q131491 Q1741 Q1748 Q26881 Q84 Q85 Q1737 Q37320 Q214178 Q45301 Q25395 Q34863 Q72 Q71 Q178168 Q16869 Q38022 Q172 Q270 Q2028 Q26887 Q184587 Q208472 Q79985 Q49243 Q1070 Q3590079 Q837165 Q41819 Q1861 Q5092 Q956 Q1555 Q1490 Q1491 Q1492 Q16562 Q437 Q387047 Q18419 Q1780 Q1781 Q690052 Q2073211 Q1851 Q2807 Q18705 Q3820 Q49149 Q1353 Q1352 Q1524 Q220 Q340 Q125434 Q25230 Q612 Q3305102 Q990168 Q1015727 Q24639 Q34713 Q1218 Q915 Q985531 Q193082 Q1020373 Q23070 Q1659757 Q26 Q1726 Q530090 Q34404 Q8717 Q3825 Q64 Q65 Q60 Q61 Q62 Q1757 Q18125 Q1867 Q5813 Q12439 Q126148 Q23556 Q837478 Q184345 Q13362 Q6106 Q495373 Q10313 Q42810 Q49255 Q3640 Q641 Q727 Q649 Q41621 Q3483936 Q158119 Q79848 Q1449 Q47048 Q1764 Q34932 Q2211 Q2704 Q47716 Q1040 Q100 Q374748 Q485172 Q26793 Q10686 Q165413 Q1574020 Q3992 Q3110 Q24826 Q1348 Q630533 Q1156 Q2751 Q41876 Q34647 Q1085
(c(Q838948)|c(Q166142),P840,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q838948
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q49241
relation P840
type Q838948
type Q166142
[ANSWERS]
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) ?e WHERE { { ?e rdf:type ontology:Q56061 . ?w rdf:type ontology:Q838948 . ?w property:P840 ?e } UNION { ?w property:P840 ?e . ?w rdf:type ontology:Q166142 . ?e rdf:type ontology:Q56061 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { ?c property:P840 resource:Q49241 . { ?c rdf:type ?j . VALUES ( ?j ) { ( ontology:Q838948 ) ( ontology:Q166142 ) } } } } . FILTER ( ?y > ?v ) }
Hanover Puerto Rico Belgrade Odessa Korean Demilitarized Zone Yozgat Uppsala Gothenburg Minsk Amman Schleswig Orlando Dragør Miryang Pyongyang Glasgow N'Djamena Memphis Salt Lake City Bilbao Oslo Newcastle upon Tyne Tijuana Stockholm Stuttgart Paris Marrakesh Kōbe Fes Edo Lisbon Delft Janesville Singapore Chandler Gijón Cologne Toledo Bruges Tel Aviv Salem Jaffa Valencia Houston Montevideo Bologna Timbuktu Joensuu Seattle Bristol Mexico City Onllwyn Junagadh Diyarbakır Istanbul Evanston Lagos United States Virgin Islands Lima Rio de Janeiro Turin Lviv Bamako Kauniainen Barnsley Edinburgh Flint Melbourne Jakarta Thessaloniki Vatican City Stavanger Austin Atacames Dallas Shanghai Tbilisi Kuwait City Blackeberg Sydney Kathmandu Chicago Ascot Havana Kazan Brighton Vienna Copenhagen Helsingør London Cairo Bregenz Cleveland Nablus Trabzon Newark Oklahoma City Zürich Geneva Mitrovica Constantinople St. Louis Toronto Warsaw Verona Davenport Grand Rapids Bingöl Kodiak Riverside Ahmedabad Hvidovre Hyrylä Kansas City Bangkok Baltimore Beijing Guatemala City Tokyo La Paz Barcelona El Paso Ljubljana Malibu Brooklyn Bratislava Budapest Trebinje Talamone Arkhangelsk Madrid Bajram Curri Beirut Nantucket Delhi Chennai Athens Rome Montreal Port Elizabeth Guernsey Dubai Tsamantas Keighley Mbale Vancouver Salzburg Jerusalem Perm Tulkarm Svishtov Jindabyne Sneek Gimli Northern Ireland Munich Jerichow New Orleans Seville Libreville Berlin Los Angeles New York City Washington, D.C. San Francisco Helsinki Manchester Taipei Canary Islands Detroit Tangier Atlanta Sabinov Viña del Mar Ferrara Portland Visalia Donostia/San Sebastián Le Havre Tampa Ankara Venice Amsterdam Moscow Haifa Sils Maria Ramallah Southampton Genoa Oulu Reykjavík Brisbane Malmö Pescara Charleston Karlsruhe Boston Jenin Ann Arbor Bergen Belfast Baikonur The Hamptons Liège San Salvador Liverpool Kolkata Tire Mumbai Siena Reims Johannesburg Prague
Prague Zürich Moscow
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Lexington
relation narrative location
type work of art
type application
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) ?e WHERE { { ?e rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:work_of_art . ?w property:narrative_location ?e } UNION { ?w property:narrative_location ?e . ?w rdf:type ontology:application . ?e rdf:type ontology:administrative_territorial_entity } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { ?c property:narrative_location resource:Lexington . { ?c rdf:type ?j . VALUES ( ?j ) { ( ontology:work_of_art ) ( ontology:application ) } } } } . FILTER ( ?y > ?v ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1085 Q72 Q649
P190
Q515
USER
Which cities are twin town of Prague, Zürich and Moscow ?
(c(Q515),P190,Q1085) (c(Q515),P190,Q72) (c(Q515),P190,Q649)
action union
action filter_type
action find
entity Q1085
relation P190
type Q515
action filter_type
action find
entity Q72
relation P190
type Q515
action filter_type
action find
entity Q649
relation P190
type Q515
[{'concept': 'Q515'}, 'P190', 'Q1085'] [{'concept': 'Q515'}, 'P190', 'Q72'] [{'concept': 'Q515'}, 'P190', 'Q649']
SELECT DISTINCT ?z WHERE { VALUES ( ?f ) { ( resource:Q72 ) ( resource:Q1085 ) } . ?f property:P190 ?z }
Prague Zürich Moscow
action union
action filter_type
action find
entity Prague
relation sister city
type city
action filter_type
action find
entity Zürich
relation sister city
type city
action filter_type
action find
entity Moscow
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Prague'] [{'concept': 'city'}, 'sister city', 'Zürich'] [{'concept': 'city'}, 'sister city', 'Moscow']
SELECT DISTINCT ?z WHERE { VALUES ( ?f ) { ( resource:Zürich ) ( resource:Prague ) } . ?f property:sister_city ?z }
[]
city
Q1486 Q1486 Q1773
SYSTEM
Buenos Aires for 1st, 2nd, Riga for 3rd
Q3936 Q1486 Q3572 Q1794 Q19689 Q9005 Q182852 Q8684 Q3616 Q3004 Q1486 Q3572 Q1773 Q1461 Q19689 Q1953 Q9005 Q19660
(c(Q515),P190,Q1085) (c(Q515),P190,Q72) (c(Q515),P190,Q649)
action union
action filter_type
action find
entity Q1085
relation P190
type Q515
action filter_type
action find
entity Q72
relation P190
type Q515
action filter_type
action find
entity Q649
relation P190
type Q515
[ANSWERS]
[{'concept': 'Q515'}, 'P190', 'Q1085'] [{'concept': 'Q515'}, 'P190', 'Q72'] [{'concept': 'Q515'}, 'P190', 'Q649']
SELECT DISTINCT ?z WHERE { VALUES ( ?f ) { ( resource:Q72 ) ( resource:Q1085 ) } . ?f property:P190 ?z }
Bamberg Buenos Aires Tunis Frankfurt Tirana Brussels Kunming Seoul Tehran Ingolstadt Buenos Aires Tunis Riga Manila Tirana Yerevan Brussels Bucharest
Buenos Aires, Buenos Aires and Riga are twin town of Prague, Zürich and Moscow
Buenos Aires Buenos Aires Riga
action union
action filter_type
action find
entity Prague
relation sister city
type city
action filter_type
action find
entity Zürich
relation sister city
type city
action filter_type
action find
entity Moscow
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Prague'] [{'concept': 'city'}, 'sister city', 'Zürich'] [{'concept': 'city'}, 'sister city', 'Moscow']
SELECT DISTINCT ?z WHERE { VALUES ( ?f ) { ( resource:Zürich ) ( resource:Prague ) } . ?f property:sister_city ?z }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1773
P276
Q131569
USER
Which treaty is located at that city ?
(c(Q131569),P276,Q1773)
action filter_type
action find_reverse
entity Q1773
relation P276
type Q131569
[{'concept': 'Q131569'}, 'P276', 'Q1773']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q131569 . ?x property:P276 resource:Q1773 }
Riga
action filter_type
action find_reverse
entity Riga
relation location
type treaty
[{'concept': 'treaty'}, 'location', 'Riga']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:treaty . ?x property:location resource:Riga }
[]
treaty
Clarification for simple ques.
Q1486
SYSTEM
Did you mean Buenos Aires ?
Q1486 Q1486 Q1773
(c(Q131569),P276,Q1486) (c(Q131569),P276,Q1486) (c(Q131569),P276,Q1773)
[ANSWER]
[{'concept': 'Q131569'}, 'P276', 'Q1486'] [{'concept': 'Q131569'}, 'P276', 'Q1486'] [{'concept': 'Q131569'}, 'P276', 'Q1773']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q131569 . ?x property:P276 resource:Q1773 }
Buenos Aires Buenos Aires Riga
Did you mean Buenos Aires ?
Buenos Aires
[{'concept': 'treaty'}, 'location', 'Buenos Aires'] [{'concept': 'treaty'}, 'location', 'Buenos Aires'] [{'concept': 'treaty'}, 'location', 'Riga']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:treaty . ?x property:location resource:Riga }
[]
Simple Question (Coreferenced)
USER
No, I meant Riga. Could you tell me the answer for that?
(c(Q131569),P276,Q1773)
Q1773
[{'concept': 'Q131569'}, 'P276', 'Q1773']
[{'concept': 'treaty'}, 'location', 'Riga']
[]
Q1076469
SYSTEM
Peace of Riga (1921)
Q1076469
(c(Q131569),P276,Q1773)
action filter_type
action find_reverse
entity Q1773
relation P276
type Q131569
[ANSWER] is located at that city
[{'concept': 'Q131569'}, 'P276', 'Q1773']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q131569 . ?x property:P276 resource:Q1773 }
Peace of Riga (1921)
Peace of Riga (1921) is located at that city
Peace of Riga (1921)
action filter_type
action find_reverse
entity Riga
relation location
type treaty
[{'concept': 'treaty'}, 'location', 'Riga']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:treaty . ?x property:location resource:Riga }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q4265374 Q19754377
P166
Q618779
USER
Which awards were Froł Agafonow and Dmitry Loza awarded with ?
AND((Q19754377,P166,c(Q618779)), (Q4265374,P166,c(Q618779)))
action filter_type
action intersection
action find
entity Q19754377
relation P166
action find
entity Q4265374
relation P166
type Q618779
{'AND': [['Q19754377', 'P166', {'concept': 'Q618779'}], ['Q4265374', 'P166', {'concept': 'Q618779'}]]}
SELECT DISTINCT ?x WHERE { resource:Q19754377 property:P166 ?x . resource:Q4265374 property:P166 ?x . ?x rdf:type ontology:Q618779 }
Dmitry Loza Froł Agafonow
action filter_type
action intersection
action find
entity Froł Agafonow
relation award received
action find
entity Dmitry Loza
relation award received
type award
{'AND': [['Froł Agafonow', 'award received', {'concept': 'award'}], ['Dmitry Loza', 'award received', {'concept': 'award'}]]}
SELECT DISTINCT ?x WHERE { resource:Froł_Agafonow property:award_received ?x . resource:Dmitry_Loza property:award_received ?x . ?x rdf:type ontology:award }
[]
award
Q18200478 Q185493 Q18080149 Q178473 Q695106
SYSTEM
Order of the Patriotic War 2nd class, Order of Lenin, Order of the Patriotic War 1st class, Hero of the Soviet Union, Order of the Red Star
Q18200478 Q185493 Q18080149 Q178473 Q695106
AND((Q19754377,P166,c(Q618779)), (Q4265374,P166,c(Q618779)))
action filter_type
action intersection
action find
entity Q19754377
relation P166
action find
entity Q4265374
relation P166
type Q618779
Froł Agafonow and Dmitry Loza were awarded the [ANSWERS]
{'AND': [['Q19754377', 'P166', {'concept': 'Q618779'}], ['Q4265374', 'P166', {'concept': 'Q618779'}]]}
SELECT DISTINCT ?x WHERE { resource:Q19754377 property:P166 ?x . resource:Q4265374 property:P166 ?x . ?x rdf:type ontology:Q618779 }
Order of the Patriotic War 2nd class Order of Lenin Order of the Patriotic War 1st class Hero of the Soviet Union Order of the Red Star
Froł Agafonow and Dmitry Loza were awarded the Order of the Patriotic War 2nd class, Order of Lenin, Order of the Patriotic War 1st class, Hero of the Soviet Union and Order of the Red Star
Order of the Patriotic War 2nd class Order of Lenin Order of the Patriotic War 1st class Hero of the Soviet Union Order of the Red Star
action filter_type
action intersection
action find
entity Froł Agafonow
relation award received
action find
entity Dmitry Loza
relation award received
type award
{'AND': [['Froł Agafonow', 'award received', {'concept': 'award'}], ['Dmitry Loza', 'award received', {'concept': 'award'}]]}
SELECT DISTINCT ?x WHERE { resource:Froł_Agafonow property:award_received ?x . resource:Dmitry_Loza property:award_received ?x . ?x rdf:type ontology:award }
[]