Simple Question (Direct)
Simple Question
Q63530
P21
Q290
USER
Which sex does Andi Langenhan have ?
(Q63530,P21,c(Q290))
action filter_type
action find
entity Q63530
relation P21
type Q290
['Q63530', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q63530 property:P21 ?c . ?c rdf:type ontology:Q290 }
Andi Langenhan
action filter_type
action find
entity Andi Langenhan
relation gender
type sex
['Andi Langenhan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Andi_Langenhan property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q63530,P21,c(Q290))
action filter_type
action find
entity Q63530
relation P21
type Q290
Andi Langenhan has 1 [ANSWER]
['Q63530', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q63530 property:P21 ?c . ?c rdf:type ontology:Q290 }
male
Andi Langenhan has 1 male
male
action filter_type
action find
entity Andi Langenhan
relation gender
type sex
['Andi Langenhan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Andi_Langenhan property:gender ?c . ?c rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q63530
P1344
Q15900616
USER
What did Andi Langenhan participate in ?
(Q63530,P1344,c(Q15900616))
action filter_type
action find
entity Q63530
relation P1344
type Q15900616
['Q63530', 'P1344', {'concept': 'Q15900616'}]
SELECT DISTINCT ?t WHERE { resource:Q63530 property:P1344 ?t . ?t rdf:type ontology:Q15900616 }
Andi Langenhan
action filter_type
action find
entity Andi Langenhan
relation participant of
type event sequence
['Andi Langenhan', 'participant of', {'concept': 'event sequence'}]
SELECT DISTINCT ?t WHERE { resource:Andi_Langenhan property:participant_of ?t . ?t rdf:type ontology:event_sequence }
[]
event sequence
Q9678 Q9674
SYSTEM
2014 Winter Olympics, 2010 Winter Olympics
Q9678 Q9674
(Q63530,P1344,c(Q15900616))
action filter_type
action find
entity Q63530
relation P1344
type Q15900616
Andi Langenhan participated in [ANSWERS]
['Q63530', 'P1344', {'concept': 'Q15900616'}]
SELECT DISTINCT ?t WHERE { resource:Q63530 property:P1344 ?t . ?t rdf:type ontology:Q15900616 }
2014 Winter Olympics 2010 Winter Olympics
Andi Langenhan participated in 2014 Winter Olympics and 2010 Winter Olympics
2014 Winter Olympics 2010 Winter Olympics
action filter_type
action find
entity Andi Langenhan
relation participant of
type event sequence
['Andi Langenhan', 'participant of', {'concept': 'event sequence'}]
SELECT DISTINCT ?t WHERE { resource:Andi_Langenhan property:participant_of ?t . ?t rdf:type ontology:event_sequence }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1691604
Q15900616
USER
And how about Sergei Walentinowitsch Russinow?
(Q1691604,P1344,c(Q15900616))
action filter_type
action find
entity Q1691604
relation P1344
type Q15900616
['Q1691604', 'P1344', {'concept': 'Q15900616'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15900616 . resource:Q1691604 property:P1344 ?r }
Sergei Walentinowitsch Russinow
action filter_type
action find
entity Sergei Walentinowitsch Russinow
relation participant of
type event sequence
['Sergei Walentinowitsch Russinow', 'participant of', {'concept': 'event sequence'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:event_sequence . resource:Sergei_Walentinowitsch_Russinow property:participant_of ?r }
[]
event sequence
Q9668
SYSTEM
2002 Winter Olympics
Q9668
(Q1691604,P1344,c(Q15900616))
action filter_type
action find
entity Q1691604
relation P1344
type Q15900616
[ANSWER]
['Q1691604', 'P1344', {'concept': 'Q15900616'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15900616 . resource:Q1691604 property:P1344 ?r }
2002 Winter Olympics
2002 Winter Olympics
action filter_type
action find
entity Sergei Walentinowitsch Russinow
relation participant of
type event sequence
['Sergei Walentinowitsch Russinow', 'participant of', {'concept': 'event sequence'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:event_sequence . resource:Sergei_Walentinowitsch_Russinow property:participant_of ?r }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q9668 Q224068 Q57782
P17
Q15617994
USER
Is that event sequence located in Collegiove and Hohndorf ?
(Q9668,P17,Q224068) (Q9668,P17,Q57782)
action is_in
entity Q9668
action intersection
action find_reverse
entity Q224068
relation P17
action find_reverse
entity Q57782
relation P17
['Q9668', 'P17', 'Q224068'] ['Q9668', 'P17', 'Q57782']
ASK WHERE { resource:Q9668 property:P17 resource:Q224068 . resource:Q9668 property:P17 resource:Q57782 }
2002 Winter Olympics Collegiove Hohndorf
action is_in
entity 2002 Winter Olympics
action intersection
action find_reverse
entity Collegiove
relation country
action find_reverse
entity Hohndorf
relation country
['2002 Winter Olympics', 'country', 'Collegiove'] ['2002 Winter Olympics', 'country', 'Hohndorf']
ASK WHERE { resource:2002_Winter_Olympics property:country resource:Collegiove . resource:2002_Winter_Olympics property:country resource:Hohndorf }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q9668,P17,Q224068) (Q9668,P17,Q57782)
action is_in
entity Q9668
action intersection
action find_reverse
entity Q224068
relation P17
action find_reverse
entity Q57782
relation P17
[ANSWER]
['Q9668', 'P17', 'Q224068'] ['Q9668', 'P17', 'Q57782']
ASK WHERE { resource:Q9668 property:P17 resource:Q224068 . resource:Q9668 property:P17 resource:Q57782 }
No
action is_in
entity 2002 Winter Olympics
action intersection
action find_reverse
entity Collegiove
relation country
action find_reverse
entity Hohndorf
relation country
['2002 Winter Olympics', 'country', 'Collegiove'] ['2002 Winter Olympics', 'country', 'Hohndorf']
ASK WHERE { resource:2002_Winter_Olympics property:country resource:Collegiove . resource:2002_Winter_Olympics property:country resource:Hohndorf }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by atmost 5320 people ?
(c(Q502895),P1303,c(Q34379))
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 5320
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?w ) WHERE { ?p rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 . ?n property:P1303 ?p } GROUP BY ?p } . FILTER ( ?w <= 5320 ) }
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 5320
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?w ) WHERE { ?p rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name . ?n property:instrument ?p } GROUP BY ?p } . FILTER ( ?w <= 5320 ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q8355 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q1444 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 5320
[ANSWERS] are played by atmost 5320 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?w ) WHERE { ?p rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 . ?n property:P1303 ?p } GROUP BY ?p } . FILTER ( ?w <= 5320 ) }
viola bass guitar 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 trumpet Tsuzumi geomungo cello violin cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano organ cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit 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 are played by atmost 5320 people
davul harpsichord Wurlitzer electric piano
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 5320
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?w ) WHERE { ?p rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name . ?n property:instrument ?p } GROUP BY ?p } . FILTER ( ?w <= 5320 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q58330 Q9668
P17
Q15617994
USER
Which administrative territories do 2002 Winter Olympics or Međimurje County belong to ?
OR((Q9668,P17,c(Q15617994)), (Q58330,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q9668
relation P17
action find
entity Q58330
relation P17
type Q15617994
{'OR': [['Q9668', 'P17', {'concept': 'Q15617994'}], ['Q58330', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q9668 property:P17 ?u } UNION { resource:Q58330 property:P17 ?u } } . ?u rdf:type ontology:Q15617994 }
Međimurje County 2002 Winter Olympics
action filter_type
action union
action find
entity 2002 Winter Olympics
relation country
action find
entity Međimurje County
relation country
type designation for an administrative territorial entity
{'OR': [['2002 Winter Olympics', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Međimurje County', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:2002_Winter_Olympics property:country ?u } UNION { resource:Međimurje_County property:country ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q224 Q30
SYSTEM
Croatia, United States of America
Q224 Q30
OR((Q9668,P17,c(Q15617994)), (Q58330,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q9668
relation P17
action find
entity Q58330
relation P17
type Q15617994
2002 Winter Olympics or Međimurje County belong to the [ANSWERS]
{'OR': [['Q9668', 'P17', {'concept': 'Q15617994'}], ['Q58330', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q9668 property:P17 ?u } UNION { resource:Q58330 property:P17 ?u } } . ?u rdf:type ontology:Q15617994 }
Croatia United States of America
2002 Winter Olympics or Međimurje County belong to the Croatia and United States of America
Croatia United States of America
action filter_type
action union
action find
entity 2002 Winter Olympics
relation country
action find
entity Međimurje County
relation country
type designation for an administrative territorial entity
{'OR': [['2002 Winter Olympics', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Međimurje County', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:2002_Winter_Olympics property:country ?u } UNION { resource:Međimurje_County property:country ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7776889
P915
Q15416
USER
Were The Zodiac Game filmed at those administrative territories ?
(Q7776889,P915,Q224) (Q7776889,P915,Q30)
action is_in
entity prev_answer
action find
entity Q7776889
relation P915
['Q7776889', 'P915', 'Q224'] ['Q7776889', 'P915', 'Q30']
ASK WHERE { resource:Q7776889 property:P915 ?a . VALUES ( ?a ) { ( resource:Q224 ) ( resource:Q30 ) } }
The Zodiac Game
action is_in
entity prev_answer
action find
entity The Zodiac Game
relation filming location
['The Zodiac Game', 'filming location', 'Croatia'] ['The Zodiac Game', 'filming location', 'United States of America']
ASK WHERE { resource:The_Zodiac_Game property:filming_location ?a . VALUES ( ?a ) { ( resource:Croatia ) ( resource:United_States_of_America ) } }
[]
television program
SYSTEM
NO
(Q7776889,P915,Q224) (Q7776889,P915,Q30)
action is_in
entity prev_answer
action find
entity Q7776889
relation P915
[ANSWER]
['Q7776889', 'P915', 'Q224'] ['Q7776889', 'P915', 'Q30']
ASK WHERE { resource:Q7776889 property:P915 ?a . VALUES ( ?a ) { ( resource:Q224 ) ( resource:Q30 ) } }
No
action is_in
entity prev_answer
action find
entity The Zodiac Game
relation filming location
['The Zodiac Game', 'filming location', 'Croatia'] ['The Zodiac Game', 'filming location', 'United States of America']
ASK WHERE { resource:The_Zodiac_Game property:filming_location ?a . VALUES ( ?a ) { ( resource:Croatia ) ( resource:United_States_of_America ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q224
P530
Q15617994 Q1048835
USER
How many administrative territories or political territories are known to have diplomatic connections with Croatia ?
(c(Q15617994),P530,Q224) (c(Q1048835),P530,Q224)
action count
action union
action filter_type
action find_reverse
entity Q224
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q224
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', 'Q224'] [{'concept': 'Q1048835'}, 'P530', 'Q224']
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { VALUES ( ?v ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?l rdf:type ?v }
Croatia
action count
action union
action filter_type
action find_reverse
entity Croatia
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Croatia
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Croatia'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Croatia']
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { VALUES ( ?v ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?l rdf:type ?v }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
5
Q225 Q38 Q183 Q184 Q408
(c(Q15617994),P530,Q224) (c(Q1048835),P530,Q224)
action count
action union
action filter_type
action find_reverse
entity Q224
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q224
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', 'Q224'] [{'concept': 'Q1048835'}, 'P530', 'Q224']
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { VALUES ( ?v ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?l rdf:type ?v }
Bosnia and Herzegovina Italy Germany Belarus Australia
5
action count
action union
action filter_type
action find_reverse
entity Croatia
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Croatia
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Croatia'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Croatia']
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { VALUES ( ?v ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?l rdf:type ?v }
[]