Simple Question (Direct)
Simple Question
Q24514510
P495
Q15617994
USER
Which administrative territory is the origin of Sacrificed Women ?
(Q24514510,P495,c(Q15617994))
action filter_type
action find
entity Q24514510
relation P495
type Q15617994
['Q24514510', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q24514510 property:P495 ?e . ?e rdf:type ontology:Q15617994 }
Sacrificed Women
action filter_type
action find
entity Sacrificed Women
relation country of origin
type designation for an administrative territorial entity
['Sacrificed Women', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Sacrificed_Women property:country_of_origin ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q96
SYSTEM
Mexico
Q96
(Q24514510,P495,c(Q15617994))
action filter_type
action find
entity Q24514510
relation P495
type Q15617994
[ANSWER] is the origin of Sacrificed Women
['Q24514510', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q24514510 property:P495 ?e . ?e rdf:type ontology:Q15617994 }
Mexico
Mexico is the origin of Sacrificed Women
Mexico
action filter_type
action find
entity Sacrificed Women
relation country of origin
type designation for an administrative territorial entity
['Sacrificed Women', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Sacrificed_Women property:country_of_origin ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q96
P35
Q502895
USER
Who is the chief of state of that administrative territory ?
(Q96,P35,c(Q502895))
action filter_type
action find
entity Q96
relation P35
type Q502895
['Q96', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . resource:Q96 property:P35 ?p }
Mexico
action filter_type
action find
entity Mexico
relation head of state
type common name
['Mexico', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . resource:Mexico property:head_of_state ?p }
[]
common name
Q296741
SYSTEM
Enrique Peña Nieto
Q296741
(Q96,P35,c(Q502895))
action filter_type
action find
entity Q96
relation P35
type Q502895
The chief of state of that administrative territory is President [ANSWER]
['Q96', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . resource:Q96 property:P35 ?p }
Enrique Peña Nieto
The chief of state of that administrative territory is President Enrique Peña Nieto
Enrique Peña Nieto
action filter_type
action find
entity Mexico
relation head of state
type common name
['Mexico', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . resource:Mexico property:head_of_state ?p }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1300012
P1303
Q34379 Q502895
USER
Which musical instruments do around the same number of people know to play as toy piano ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1300012
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?j ) WHERE { ?q rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 . ?d property:P1303 ?q } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { resource:Q1300012 property:P1303 ?y . ?y rdf:type ontology:Q34379 } } . FILTER ( ?j = ?w ) }
toy piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity toy piano
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?j ) WHERE { ?q rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name . ?d property:instrument ?q } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { resource:toy_piano property:instrument ?y . ?y rdf:type ontology:musical_instrument } } . FILTER ( ?j = ?w ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1300012
relation P1303
type Q34379
[ANSWERS] around the same number of people know to play as toy piano
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?j ) WHERE { ?q rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 . ?d property:P1303 ?q } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { resource:Q1300012 property:P1303 ?y . ?y rdf:type ontology:Q34379 } } . FILTER ( ?j = ?w ) }
viola lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
Davul, harpsichord and Wurlitzer electric piano around the same number of people know to play as toy piano
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity toy piano
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?j ) WHERE { ?q rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name . ?d property:instrument ?q } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { resource:toy_piano property:instrument ?y . ?y rdf:type ontology:musical_instrument } } . FILTER ( ?j = ?w ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q3574843
P1303
Q34379 Q502895
USER
And also tell me about tonbak?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q3574843
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?n ) AS ?t ) WHERE { ?n property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { resource:Q3574843 property:P1303 ?l . ?l rdf:type ontology:Q34379 } } . FILTER ( ?t = ?o ) }
tonbak
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity tonbak
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?n ) AS ?t ) WHERE { ?n property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { resource:tonbak property:instrument ?l . ?l rdf:type ontology:musical_instrument } } . FILTER ( ?t = ?o ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q3574843
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?n ) AS ?t ) WHERE { ?n property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { resource:Q3574843 property:P1303 ?l . ?l rdf:type ontology:Q34379 } } . FILTER ( ?t = ?o ) }
viola lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity tonbak
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?n ) AS ?t ) WHERE { ?n property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { resource:tonbak property:instrument ?l . ?l rdf:type ontology:musical_instrument } } . FILTER ( ?t = ?o ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P180
Q34379 Q386724
USER
How many works depict atmost 2 musical instruments ?
(c(Q386724),P180,c(Q34379))
action count
action atmost
action find_tuple_counts
relation P180
type Q386724
type Q34379
value 2
[{'concept': 'Q386724'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?h ) WHERE { ?x rdf:type ontology:Q386724 . ?a rdf:type ontology:Q34379 . ?x property:P180 ?a } GROUP BY ?x } . FILTER ( ?h <= 2 ) }
action count
action atmost
action find_tuple_counts
relation depicts
type work
type musical instrument
value 2
[{'concept': 'work'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?h ) WHERE { ?x rdf:type ontology:work . ?a rdf:type ontology:musical_instrument . ?x property:depicts ?a } GROUP BY ?x } . FILTER ( ?h <= 2 ) }
[]
musical instrument work
SYSTEM
46
Q27266011 Q18818942 Q20018619 Q18822501 Q3227124 Q7604478 Q18822442 Q2901063 Q20655984 Q23301843 Q27245162 Q3842557 Q25351982 Q16961954 Q20668011 Q20668010 Q18760514 Q20667952 Q20018598 Q18350631 Q208120 Q7772874 Q20035907 Q20012212 Q20012204 Q20012272 Q20012219 Q577890 Q1638622 Q11725617 Q27783590 Q2410932 Q1684762 Q18602499 Q18676635 Q3000066 Q3387593 Q20667955 Q20655689 Q17986845 Q20667953 Q18397036 Q1213160 Q2619037 Q7884355 Q2908939
(c(Q386724),P180,c(Q34379))
action count
action atmost
action find_tuple_counts
relation P180
type Q386724
type Q34379
value 2
[ANSWER]
[{'concept': 'Q386724'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?h ) WHERE { ?x rdf:type ontology:Q386724 . ?a rdf:type ontology:Q34379 . ?x property:P180 ?a } GROUP BY ?x } . FILTER ( ?h <= 2 ) }
Robin Hood The Holy Family in a Landscape Procession of the Panathenaic festival Tarquinius and Lucretia le serment du jeu de paume Statue of Clement X Portrait of Gabriel-Charles Bidault Borghese Vase Georgiana Spencer, Duchess of Devonshire La Trace du lièvre Hidalgo The Virgin and Child with Saint Andrew and Saint Peter Labyrinth Disney Partners Statue Funerary stele of Thalea Funerary banquet Entombment of Christ Hunt scene, known as "Alexander's hunt" Plaque of the Ergastines I'm too sad to tell you caryatid The Vision of Constantine Sacrifice of a goat Female head Banquet scene Panther Griffin Alexamenos graffito Adoration of the Magi George Washington Melancholy My God, Help Me to Survive This Deadly Love Manchester Madonna Mountain Stream, Yemen Valley, Palestine Splatter Analysis Lycurgus Cup Unfinished Portrait of General Bonaparte Funerary stele of Adea and Thrãson Unfinished painting Mae West Lips Sofa Apparition of the Dioscuri at a banquet Landscape with castle The Entombment Portrait of Madame Récamier Unfinished portrait of Franklin D. Roosevelt Bois Protat
46
action count
action atmost
action find_tuple_counts
relation depicts
type work
type musical instrument
value 2
[{'concept': 'work'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?h ) WHERE { ?x rdf:type ontology:work . ?a rdf:type ontology:musical_instrument . ?x property:depicts ?a } GROUP BY ?x } . FILTER ( ?h <= 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5415561 Q1759986
P27 P17
Q15617994
USER
Which administrative territories are Wurlitzer electric piano a part of or are the countries of citizenship of Evan W. Evans ?
OR((Q1759986,P17,c(Q15617994)), (Q5415561,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1759986
relation P17
action find
entity Q5415561
relation P27
type Q15617994
{'OR': [['Q1759986', 'P17', {'concept': 'Q15617994'}], ['Q5415561', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q5415561 property:P27 ?j } UNION { resource:Q1759986 property:P17 ?j } } . ?j rdf:type ontology:Q15617994 }
Evan W. Evans Wurlitzer electric piano
action filter_type
action union
action find
entity Wurlitzer electric piano
relation country
action find
entity Evan W. Evans
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Wurlitzer electric piano', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Evan W. Evans', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Evan_W._Evans property:country_of_citizenship ?j } UNION { resource:Wurlitzer_electric_piano property:country ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
OR((Q1759986,P17,c(Q15617994)), (Q5415561,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1759986
relation P17
action find
entity Q5415561
relation P27
type Q15617994
[ANSWER] is Wurlitzer electric piano a part of or is the countries of citizenship of Evan W. Evans
{'OR': [['Q1759986', 'P17', {'concept': 'Q15617994'}], ['Q5415561', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q5415561 property:P27 ?j } UNION { resource:Q1759986 property:P17 ?j } } . ?j rdf:type ontology:Q15617994 }
United States of America
United States of America is Wurlitzer electric piano a part of or is the countries of citizenship of Evan W. Evans
United States of America
action filter_type
action union
action find
entity Wurlitzer electric piano
relation country
action find
entity Evan W. Evans
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Wurlitzer electric piano', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Evan W. Evans', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Evan_W._Evans property:country_of_citizenship ?j } UNION { resource:Wurlitzer_electric_piano property:country ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q30 Q5263006
P27
Q502895
USER
Is Derrick Dukes a native of that administrative territory ?
(Q5263006,P27,Q30)
action is_in
entity Q30
action find
entity Q5263006
relation P27
['Q5263006', 'P27', 'Q30']
ASK WHERE { resource:Q5263006 property:P27 resource:Q30 }
United States of America Derrick Dukes
action is_in
entity United States of America
action find
entity Derrick Dukes
relation country of citizenship
['Derrick Dukes', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Derrick_Dukes property:country_of_citizenship resource:United_States_of_America }
[]
common name
SYSTEM
YES
(Q5263006,P27,Q30)
action is_in
entity Q30
action find
entity Q5263006
relation P27
[ANSWER]
['Q5263006', 'P27', 'Q30']
ASK WHERE { resource:Q5263006 property:P27 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Derrick Dukes
relation country of citizenship
['Derrick Dukes', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Derrick_Dukes property:country_of_citizenship resource:United_States_of_America }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic associations with min number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?d ) AS ?j ) { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?d ) WHERE { ?r property:P530 ?x . ?x rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 } GROUP BY ?r } } . FILTER ( ?i = ?j ) . { SELECT DISTINCT ?z ( COUNT ( ?m ) AS ?i ) WHERE { ?z property:P530 ?m . ?z rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?z } }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?d ) AS ?j ) { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?d ) WHERE { ?r property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?r } } . FILTER ( ?i = ?j ) . { SELECT DISTINCT ?z ( COUNT ( ?m ) AS ?i ) WHERE { ?z property:diplomatic_relation ?m . ?z rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } }
[]
designation for an administrative territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] have diplomatic associations with min number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?d ) AS ?j ) { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?d ) WHERE { ?r property:P530 ?x . ?x rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 } GROUP BY ?r } } . FILTER ( ?i = ?j ) . { SELECT DISTINCT ?z ( COUNT ( ?m ) AS ?i ) WHERE { ?z property:P530 ?m . ?z rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?z } }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea
Gabon, Grenada and Papua New Guinea have diplomatic associations with min number of administrative territories
Gabon Grenada Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?d ) AS ?j ) { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?d ) WHERE { ?r property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?r } } . FILTER ( ?i = ?j ) . { SELECT DISTINCT ?z ( COUNT ( ?m ) AS ?i ) WHERE { ?z property:diplomatic_relation ?m . ?z rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q270564 Q5263006
P47 P27
Q15617994
USER
Which administrative territories do Derrick Dukes belong to or are adjacent to Cairo Montenotte ?
OR((Q5263006,P27,c(Q15617994)), (Q270564,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q5263006
relation P27
action find
entity Q270564
relation P47
type Q15617994
{'OR': [['Q5263006', 'P27', {'concept': 'Q15617994'}], ['Q270564', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q5263006 property:P27 ?l } UNION { resource:Q270564 property:P47 ?l } } . ?l rdf:type ontology:Q15617994 }
Cairo Montenotte Derrick Dukes
action filter_type
action union
action find
entity Derrick Dukes
relation country of citizenship
action find
entity Cairo Montenotte
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Derrick Dukes', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Cairo Montenotte', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Derrick_Dukes property:country_of_citizenship ?l } UNION { resource:Cairo_Montenotte property:shares_border_with ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20437 Q30 Q270619 Q270723 Q270582 Q270720 Q270759 Q270504 Q271169 Q13320
SYSTEM
Some of them are Saliceto, United States of America, Cengio, Dego, Carcare, Cosseria, Giusvalla, Altare, Pontinvrea, Savona
Q271169 Q270619 Q20437 Q270492 Q30 Q270582 Q270723 Q270720 Q13320 Q270504 Q20094 Q270759
OR((Q5263006,P27,c(Q15617994)), (Q270564,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q5263006
relation P27
action find
entity Q270564
relation P47
type Q15617994
Derrick Dukes belong to the [ANSWERS] or are adjacent to Cairo Montenotte
{'OR': [['Q5263006', 'P27', {'concept': 'Q15617994'}], ['Q270564', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q5263006 property:P27 ?l } UNION { resource:Q270564 property:P47 ?l } } . ?l rdf:type ontology:Q15617994 }
Pontinvrea Cengio Saliceto Albisola Superiore United States of America Carcare Dego Cosseria Savona Altare Gottasecca Giusvalla
Derrick Dukes belong to the Saliceto, United States of America, Cengio, Dego, Carcare, Cosseria, Giusvalla, Altare, Pontinvrea and Savona or are adjacent to Cairo Montenotte
Saliceto United States of America Cengio Dego Carcare Cosseria Giusvalla Altare Pontinvrea Savona
action filter_type
action union
action find
entity Derrick Dukes
relation country of citizenship
action find
entity Cairo Montenotte
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Derrick Dukes', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Cairo Montenotte', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Derrick_Dukes property:country_of_citizenship ?l } UNION { resource:Cairo_Montenotte property:shares_border_with ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q15416 Q838948
USER
How many administrative territories are the origin of less number of television programs or works of art than that administrative territory ?
(c(Q15416)|c(Q838948),P495,c(Q15617994))
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q838948 }
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:work_of_art }
[]
designation for an administrative territorial entity television program work of art
Comparative|Count over More/Less|Mult. entity type|Clarification
Q270504
SYSTEM
Did you mean Altare ?
(c(Q15416)|c(Q838948),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q838948 }
Did you mean Altare ?
Altare
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:work_of_art }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant United States of America. Could you tell me the answer for that?
(c(Q15416)|c(Q838948),P495,c(Q15617994))
Q30
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
168
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q145 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q15416)|c(Q838948),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q838948 }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands United Kingdom Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
168
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5990 Q5415561
P47 P27
Q15617994
USER
Which administrative territories are Evan W. Evans a civilian of or are bordered by Vercelli ?
OR((Q5415561,P27,c(Q15617994)), (Q5990,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q5415561
relation P27
action find
entity Q5990
relation P47
type Q15617994
{'OR': [['Q5415561', 'P27', {'concept': 'Q15617994'}], ['Q5990', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q5415561 property:P27 ?u } UNION { resource:Q5990 property:P47 ?u } } . ?u rdf:type ontology:Q15617994 }
Vercelli Evan W. Evans
action filter_type
action union
action find
entity Evan W. Evans
relation country of citizenship
action find
entity Vercelli
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Evan W. Evans', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Vercelli', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Evan_W._Evans property:country_of_citizenship ?u } UNION { resource:Vercelli property:shares_border_with ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q25204 Q24883 Q30 Q25202 Q25050 Q24963 Q25176 Q41003 Q25181 Q25160
SYSTEM
Some of them are San Germano Vercellese, Borgo Vercelli, United States of America, Sali Vercellese, Desana, Caresanablot, Prarolo, Palestro, Quinto Vercellese, Olcenengo
Q25202 Q25133 Q25218 Q24858 Q25204 Q24963 Q25181 Q30 Q25050 Q24883 Q41003 Q25176 Q25160 Q22655 Q25199
OR((Q5415561,P27,c(Q15617994)), (Q5990,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q5415561
relation P27
action find
entity Q5990
relation P47
type Q15617994
[ANSWERS] are Evan W. Evans a civilian of or are bordered by Vercelli
{'OR': [['Q5415561', 'P27', {'concept': 'Q15617994'}], ['Q5990', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q5415561 property:P27 ?u } UNION { resource:Q5990 property:P47 ?u } } . ?u rdf:type ontology:Q15617994 }
Sali Vercellese Lignana Villata Asigliano Vercellese San Germano Vercellese Caresanablot Quinto Vercellese United States of America Desana Borgo Vercelli Palestro Prarolo Olcenengo Vinzaglio Salasco
San Germano Vercellese, Borgo Vercelli, United States of America, Sali Vercellese, Desana, Caresanablot, Prarolo, Palestro, Quinto Vercellese and Olcenengo are Evan W. Evans a civilian of or are bordered by Vercelli
San Germano Vercellese Borgo Vercelli United States of America Sali Vercellese Desana Caresanablot Prarolo Palestro Quinto Vercellese Olcenengo
action filter_type
action union
action find
entity Evan W. Evans
relation country of citizenship
action find
entity Vercelli
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Evan W. Evans', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Vercelli', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Evan_W._Evans property:country_of_citizenship ?u } UNION { resource:Vercelli property:shares_border_with ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
Which administrative territories are the countries of origin of around the same number of releases as that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity release
Comparative|More/Less|Single entity type|Clarification
Q41003
SYSTEM
Did you mean Palestro ?
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Did you mean Palestro ?
Palestro
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
USER
No, I meant United States of America. Could you tell me the answer for that?
(c(Q2031291),P495,c(Q15617994))
Q30
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q30
SYSTEM
United States of America
Q30
(c(Q2031291),P495,c(Q15617994))
[ANSWER] is the countries of origin of around the same number of releases as that administrative territory
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
United States of America
United States of America is the countries of origin of around the same number of releases as that administrative territory
United States of America
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q15407761 Q1759986
P27 P17
Q15617994
USER
Which administrative territories are Wurlitzer electric piano situated in and are the native countriesof Tal Avneri ?
AND((Q1759986,P17,c(Q15617994)), (Q15407761,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q1759986
relation P17
action find
entity Q15407761
relation P27
type Q15617994
{'AND': [['Q1759986', 'P17', {'concept': 'Q15617994'}], ['Q15407761', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { resource:Q1759986 property:P17 ?q . resource:Q15407761 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Tal Avneri Wurlitzer electric piano
action filter_type
action intersection
action find
entity Wurlitzer electric piano
relation country
action find
entity Tal Avneri
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Wurlitzer electric piano', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Tal Avneri', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { resource:Wurlitzer_electric_piano property:country ?q . resource:Tal_Avneri property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q1759986,P17,c(Q15617994)), (Q15407761,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q1759986
relation P17
action find
entity Q15407761
relation P27
type Q15617994
Wurlitzer electric piano are situated in [ANSWER] and are the native countriesof Tal Avneri
{'AND': [['Q1759986', 'P17', {'concept': 'Q15617994'}], ['Q15407761', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { resource:Q1759986 property:P17 ?q . resource:Q15407761 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
United States of America
Wurlitzer electric piano are situated in United States of America and are the native countriesof Tal Avneri
United States of America
action filter_type
action intersection
action find
entity Wurlitzer electric piano
relation country
action find
entity Tal Avneri
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Wurlitzer electric piano', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Tal Avneri', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { resource:Wurlitzer_electric_piano property:country ?q . resource:Tal_Avneri property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P921
Q15416
USER
Which television programs were mainly based on that administrative territory ?
(c(Q15416),P921,Q30)
action filter_type
action find_reverse
entity Q30
relation P921
type Q15416
[{'concept': 'Q15416'}, 'P921', 'Q30']
SELECT DISTINCT ?t WHERE { ?t property:P921 resource:Q30 . ?t rdf:type ontology:Q15416 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation main subject
type television program
[{'concept': 'television program'}, 'main subject', 'United States of America']
SELECT DISTINCT ?t WHERE { ?t property:main_subject resource:United_States_of_America . ?t rdf:type ontology:television_program }
[]
television program
Q5286383 Q7897156 Q4691839
SYSTEM
Do You Speak American?, Unnatural Causes: Is Inequality Making Us Sick?, Age 7 in America
Q5286383 Q7897156 Q4691839
(c(Q15416),P921,Q30)
action filter_type
action find_reverse
entity Q30
relation P921
type Q15416
[ANSWERS]
[{'concept': 'Q15416'}, 'P921', 'Q30']
SELECT DISTINCT ?t WHERE { ?t property:P921 resource:Q30 . ?t rdf:type ontology:Q15416 }
Do You Speak American? Unnatural Causes: Is Inequality Making Us Sick? Age 7 in America
Do You Speak American, Unnatural Causes: Is Inequality Making Us Sick and Age 7 in America were mainly based on that administrative territory
Do You Speak American? Unnatural Causes: Is Inequality Making Us Sick? Age 7 in America
action filter_type
action find_reverse
entity United States of America
relation main subject
type television program
[{'concept': 'television program'}, 'main subject', 'United States of America']
SELECT DISTINCT ?t WHERE { ?t property:main_subject resource:United_States_of_America . ?t rdf:type ontology:television_program }
[]