Simple Question (Direct)
Simple Question
Q15783703
P102
Q7210356
USER
Which political organization is Anton Zimmermann a member of ?
(Q15783703,P102,c(Q7210356))
action filter_type
action find
entity Q15783703
relation P102
type Q7210356
['Q15783703', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?c WHERE { resource:Q15783703 property:P102 ?c . ?c rdf:type ontology:Q7210356 }
Anton Zimmermann
action filter_type
action find
entity Anton Zimmermann
relation member of political party
type political organization
['Anton Zimmermann', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?c WHERE { resource:Anton_Zimmermann property:member_of_political_party ?c . ?c rdf:type ontology:political_organization }
[]
political organization
Q179111
SYSTEM
Social Democratic Party of Austria
Q179111
(Q15783703,P102,c(Q7210356))
action filter_type
action find
entity Q15783703
relation P102
type Q7210356
Party [ANSWER] is Anton Zimmermann a member of
['Q15783703', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?c WHERE { resource:Q15783703 property:P102 ?c . ?c rdf:type ontology:Q7210356 }
Social Democratic Party of Austria
Party Social Democratic Party of Austria is Anton Zimmermann a member of
Social Democratic Party of Austria
action filter_type
action find
entity Anton Zimmermann
relation member of political party
type political organization
['Anton Zimmermann', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?c WHERE { resource:Anton_Zimmermann property:member_of_political_party ?c . ?c rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15783703
P39
Q12737077
USER
Which occupation was a position held by that person ?
(Q179111,P39,c(Q12737077))
action filter_type
action find
entity Q15783703
relation P39
type Q12737077
['Q179111', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q15783703 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
Anton Zimmermann
action filter_type
action find
entity Anton Zimmermann
relation position held
type occupation
['Social Democratic Party of Austria', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Anton_Zimmermann property:position_held ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q19360771
SYSTEM
member of the Austrian federal council
Q19360771
(Q179111,P39,c(Q12737077))
action filter_type
action find
entity Q15783703
relation P39
type Q12737077
A [ANSWER] was a position held by that person
['Q179111', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q15783703 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
member of the Austrian federal council
A member of the Austrian federal council was a position held by that person
member of the Austrian federal council
action filter_type
action find
entity Anton Zimmermann
relation position held
type occupation
['Social Democratic Party of Austria', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Anton_Zimmermann property:position_held ?u . ?u rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19360771
P17
Q1048835
USER
Which political territory does that occupation belong to ?
(Q19360771,P17,c(Q1048835))
action filter_type
action find
entity Q19360771
relation P17
type Q1048835
['Q19360771', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q1048835 . resource:Q19360771 property:P17 ?x }
member of the Austrian federal council
action filter_type
action find
entity member of the Austrian federal council
relation country
type political territorial entity
['member of the Austrian federal council', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:political_territorial_entity . resource:member_of_the_Austrian_federal_council property:country ?x }
[]
political territorial entity
Q40
SYSTEM
Austria
Q40
(Q19360771,P17,c(Q1048835))
action filter_type
action find
entity Q19360771
relation P17
type Q1048835
That occupation belongs to [ANSWER]
['Q19360771', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q1048835 . resource:Q19360771 property:P17 ?x }
Austria
That occupation belongs to Austria
Austria
action filter_type
action find
entity member of the Austrian federal council
relation country
type political territorial entity
['member of the Austrian federal council', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:political_territorial_entity . resource:member_of_the_Austrian_federal_council property:country ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q40
P35
Q502895
USER
Who are the heads of state of that political territory ?
(Q40,P35,c(Q502895))
action filter_type
action find
entity Q40
relation P35
type Q502895
['Q40', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q40 property:P35 ?m . ?m rdf:type ontology:Q502895 }
Austria
action filter_type
action find
entity Austria
relation head of state
type common name
['Austria', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Austria property:head_of_state ?m . ?m rdf:type ontology:common_name }
[]
common name
Q1260 Q11753 Q78490
SYSTEM
Kurt Waldheim, Heinz Fischer, Thomas Klestil
Q72898 Q84263 Q13014 Q72856 Q1260 Q84475 Q78490 Q84204 Q11753 Q11726
(Q40,P35,c(Q502895))
action filter_type
action find
entity Q40
relation P35
type Q502895
The heads of state of that political territory are [ANSWERS]
['Q40', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q40 property:P35 ?m . ?m rdf:type ontology:Q502895 }
Adolf Schärf Wilhelm Miklas Franz Jonas Rudolf Kirchschläger Kurt Waldheim Michael Hainisch Thomas Klestil Theodor Körner Heinz Fischer Karl Renner
The heads of state of that political territory are Kurt Waldheim, Heinz Fischer and Thomas Klestil
Kurt Waldheim Heinz Fischer Thomas Klestil
action filter_type
action find
entity Austria
relation head of state
type common name
['Austria', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Austria property:head_of_state ?m . ?m rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q78490
P1196
Q1931388
USER
What manner did that person die ?
(Q78490,P1196,c(Q1931388))
action filter_type
action find
entity Q78490
relation P1196
type Q1931388
['Q78490', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?c WHERE { resource:Q78490 property:P1196 ?c . ?c rdf:type ontology:Q1931388 }
Thomas Klestil
action filter_type
action find
entity Thomas Klestil
relation manner of death
type cause of death
['Thomas Klestil', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?c WHERE { resource:Thomas_Klestil property:manner_of_death ?c . ?c rdf:type ontology:cause_of_death }
[]
cause of death
Clarification for simple ques.
Q11753
SYSTEM
Did you mean Heinz Fischer ?
Q1260 Q11753 Q78490
(Q1260,P1196,c(Q1931388)) (Q11753,P1196,c(Q1931388)) (Q78490,P1196,c(Q1931388))
[ANSWER]
['Q1260', 'P1196', {'concept': 'Q1931388'}] ['Q11753', 'P1196', {'concept': 'Q1931388'}] ['Q78490', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?c WHERE { resource:Q78490 property:P1196 ?c . ?c rdf:type ontology:Q1931388 }
Kurt Waldheim Heinz Fischer Thomas Klestil
Did you mean Heinz Fischer ?
Heinz Fischer
['Kurt Waldheim', 'manner of death', {'concept': 'cause of death'}] ['Heinz Fischer', 'manner of death', {'concept': 'cause of death'}] ['Thomas Klestil', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?c WHERE { resource:Thomas_Klestil property:manner_of_death ?c . ?c rdf:type ontology:cause_of_death }
[]
Simple Question (Coreferenced)
USER
No, I meant Thomas Klestil. Could you tell me the answer for that?
(Q78490,P1196,c(Q1931388))
Q78490
['Q78490', 'P1196', {'concept': 'Q1931388'}]
['Thomas Klestil', 'manner of death', {'concept': 'cause of death'}]
[]
Q3739104
SYSTEM
natural causes
Q3739104
(Q78490,P1196,c(Q1931388))
action filter_type
action find
entity Q78490
relation P1196
type Q1931388
That person died in [ANSWER]
['Q78490', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?c WHERE { resource:Q78490 property:P1196 ?c . ?c rdf:type ontology:Q1931388 }
natural causes
That person died in natural causes
natural causes
action filter_type
action find
entity Thomas Klestil
relation manner of death
type cause of death
['Thomas Klestil', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?c WHERE { resource:Thomas_Klestil property:manner_of_death ?c . ?c rdf:type ontology:cause_of_death }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3739104
P509
Q502895
USER
Who died from that cause of death ?
(c(Q502895),P509,Q3739104)
action filter_type
action find_reverse
entity Q3739104
relation P509
type Q502895
[{'concept': 'Q502895'}, 'P509', 'Q3739104']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P509 resource:Q3739104 }
natural causes
action filter_type
action find_reverse
entity natural causes
relation cause of death
type common name
[{'concept': 'common name'}, 'cause of death', 'natural causes']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:cause_of_death resource:natural_causes }
[]
common name
Q185007 Q170256 Q1057003
SYSTEM
Rita Levi-Montalcini, Chris Marker, The Rev
Q20748116 Q185007 Q316859 Q172928 Q3106793 Q1148054 Q774948 Q170256 Q5560590 Q1042915 Q168355 Q55391 Q3086496 Q381234 Q314929 Q1057003 Q3276795
(c(Q502895),P509,Q3739104)
action filter_type
action find_reverse
entity Q3739104
relation P509
type Q502895
[ANSWERS] died from that cause of death
[{'concept': 'Q502895'}, 'P509', 'Q3739104']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P509 resource:Q3739104 }
Maria Cristina Villanova de Árbenz Rita Levi-Montalcini Ferdinand IV of Castile Clement IV Ginny Tyler William J. Tuttle Vesna Rožič Chris Marker Gil Perkins Carlos Franqui Don Beddoe Robert Bresson Françoise Giret Luis g berlanga Dick Francis The Rev James B. Clark
Rita Levi-Montalcini, Chris Marker and The Rev died from that cause of death
Rita Levi-Montalcini Chris Marker The Rev
action filter_type
action find_reverse
entity natural causes
relation cause of death
type common name
[{'concept': 'common name'}, 'cause of death', 'natural causes']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:cause_of_death resource:natural_causes }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q3382191
P1303
Q34379 Q502895
USER
Which musical instruments do around the same number of people know to play as upright 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 Q3382191
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?s ) WHERE { ?g property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { resource:Q3382191 property:P1303 ?c . ?c rdf:type ontology:Q34379 } } . FILTER ( ?s = ?z ) }
upright piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity upright piano
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?s ) WHERE { ?g property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { resource:upright_piano property:instrument ?c . ?c rdf:type ontology:musical_instrument } } . FILTER ( ?s = ?z ) }
[]
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 Q3382191
relation P1303
type Q34379
[ANSWERS] around the same number of people know to play as upright piano
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?s ) WHERE { ?g property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { resource:Q3382191 property:P1303 ?c . ?c rdf:type ontology:Q34379 } } . FILTER ( ?s = ?z ) }
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 upright 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 upright piano
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?s ) WHERE { ?g property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { resource:upright_piano property:instrument ?c . ?c rdf:type ontology:musical_instrument } } . FILTER ( ?s = ?z ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q4186777 Q15783703
P27 P495
Q1048835
USER
Which political territories are the countries of citizenship of Anton Zimmermann and are the countries of origin of Opera Jawa ?
AND((Q15783703,P27,c(Q1048835)), (Q4186777,P495,c(Q1048835)))
action filter_type
action intersection
action find
entity Q15783703
relation P27
action find
entity Q4186777
relation P495
type Q1048835
{'AND': [['Q15783703', 'P27', {'concept': 'Q1048835'}], ['Q4186777', 'P495', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1048835 . resource:Q15783703 property:P27 ?t . resource:Q4186777 property:P495 ?t }
Opera Jawa Anton Zimmermann
action filter_type
action intersection
action find
entity Anton Zimmermann
relation country of citizenship
action find
entity Opera Jawa
relation country of origin
type political territorial entity
{'AND': [['Anton Zimmermann', 'country of citizenship', {'concept': 'political territorial entity'}], ['Opera Jawa', 'country of origin', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:political_territorial_entity . resource:Anton_Zimmermann property:country_of_citizenship ?t . resource:Opera_Jawa property:country_of_origin ?t }
[]
political territorial entity
Q40
SYSTEM
Austria
Q40
AND((Q15783703,P27,c(Q1048835)), (Q4186777,P495,c(Q1048835)))
action filter_type
action intersection
action find
entity Q15783703
relation P27
action find
entity Q4186777
relation P495
type Q1048835
[ANSWER] is the countries of citizenship of Anton Zimmermann and is the countries of origin of Opera Jawa
{'AND': [['Q15783703', 'P27', {'concept': 'Q1048835'}], ['Q4186777', 'P495', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1048835 . resource:Q15783703 property:P27 ?t . resource:Q4186777 property:P495 ?t }
Austria
Austria is the countries of citizenship of Anton Zimmermann and is the countries of origin of Opera Jawa
Austria
action filter_type
action intersection
action find
entity Anton Zimmermann
relation country of citizenship
action find
entity Opera Jawa
relation country of origin
type political territorial entity
{'AND': [['Anton Zimmermann', 'country of citizenship', {'concept': 'political territorial entity'}], ['Opera Jawa', 'country of origin', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:political_territorial_entity . resource:Anton_Zimmermann property:country_of_citizenship ?t . resource:Opera_Jawa property:country_of_origin ?t }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many administrative territories have diplomatic relationships with exactly 3 political territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 3
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?o ) AS ?s ) WHERE { ?p property:P530 ?o . ?p rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q1048835 } GROUP BY ?p } . FILTER ( ?s = 3 ) }
action count
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?o ) AS ?s ) WHERE { ?p property:diplomatic_relation ?o . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?p } . FILTER ( ?s = 3 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
32
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q884 Q33 Q30 Q36 Q34 Q39 Q739 Q423 Q851 Q20 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q1048835),P530,c(Q15617994))
action count
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 3
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?o ) AS ?s ) WHERE { ?p property:P530 ?o . ?p rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q1048835 } GROUP BY ?p } . FILTER ( ?s = 3 ) }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey South Korea Finland United States of America Poland Sweden Switzerland Colombia North Korea Saudi Arabia Norway Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
32
action count
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?o ) AS ?s ) WHERE { ?p property:diplomatic_relation ?o . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?p } . FILTER ( ?s = 3 ) }
[]