Simple Question (Direct)
Simple Question
Q4760848
P106
Q12737077
USER
What does Andy Impey do for a living ?
(Q4760848,P106,c(Q12737077))
action filter_type
action find
entity Q4760848
relation P106
type Q12737077
['Q4760848', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q4760848 property:P106 ?y }
Andy Impey
action filter_type
action find
entity Andy Impey
relation occupation
type occupation
['Andy Impey', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Andy_Impey property:occupation ?y }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q4760848,P106,c(Q12737077))
action filter_type
action find
entity Q4760848
relation P106
type Q12737077
[ANSWER] Andy Impey does for a living
['Q4760848', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q4760848 property:P106 ?y }
association football player
Association football player Andy Impey does for a living
association football player
action filter_type
action find
entity Andy Impey
relation occupation
type occupation
['Andy Impey', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Andy_Impey property:occupation ?y }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4760848
P21
Q290
USER
Which sex does Andy Impey have ?
(Q4760848,P21,c(Q290))
action filter_type
action find
entity Q4760848
relation P21
type Q290
['Q4760848', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q290 . resource:Q4760848 property:P21 ?n }
Andy Impey
action filter_type
action find
entity Andy Impey
relation gender
type sex
['Andy Impey', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:sex . resource:Andy_Impey property:gender ?n }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4760848,P21,c(Q290))
action filter_type
action find
entity Q4760848
relation P21
type Q290
Andy Impey has a [ANSWER]
['Q4760848', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q290 . resource:Q4760848 property:P21 ?n }
male
Andy Impey has a male
male
action filter_type
action find
entity Andy Impey
relation gender
type sex
['Andy Impey', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:sex . resource:Andy_Impey property:gender ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4760848
P641
Q349
USER
Which sport was Andy Impey a part of ?
(Q4760848,P641,c(Q349))
action filter_type
action find
entity Q4760848
relation P641
type Q349
['Q4760848', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q349 . resource:Q4760848 property:P641 ?w }
Andy Impey
action filter_type
action find
entity Andy Impey
relation sport
type sport
['Andy Impey', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:sport . resource:Andy_Impey property:sport ?w }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q4760848,P641,c(Q349))
action filter_type
action find
entity Q4760848
relation P641
type Q349
Which sport was Andy Impey a part of
['Q4760848', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q349 . resource:Q4760848 property:P641 ?w }
association football
Which sport was Andy Impey a part of
association football
action filter_type
action find
entity Andy Impey
relation sport
type sport
['Andy Impey', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:sport . resource:Andy_Impey property:sport ?w }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q368111
Q349
USER
And how about François Van der Elst?
(Q368111,P641,c(Q349))
action filter_type
action find
entity Q368111
relation P641
type Q349
['Q368111', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?l WHERE { resource:Q368111 property:P641 ?l . ?l rdf:type ontology:Q349 }
François Van der Elst
action filter_type
action find
entity François Van der Elst
relation sport
type sport
['François Van der Elst', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?l WHERE { resource:François_Van_der_Elst property:sport ?l . ?l rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q368111,P641,c(Q349))
action filter_type
action find
entity Q368111
relation P641
type Q349
[ANSWER]
['Q368111', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?l WHERE { resource:Q368111 property:P641 ?l . ?l rdf:type ontology:Q349 }
association football
association football
action filter_type
action find
entity François Van der Elst
relation sport
type sport
['François Van der Elst', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?l WHERE { resource:François_Van_der_Elst property:sport ?l . ?l rdf:type ontology:sport }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P417
Q502895 Q12737077
USER
Which people are the patron saint of max number of occupations ?
(c(Q12737077),P417,Q208331)
action argmax
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?f ) { SELECT DISTINCT ?t ( COUNT ( ?s ) AS ?x ) WHERE { ?t rdf:type ontology:Q502895 . ?s rdf:type ontology:Q12737077 . ?s property:P417 ?t } GROUP BY ?t } } . { SELECT DISTINCT ?l ( COUNT ( ?e ) AS ?b ) WHERE { ?e property:P417 ?l . ?l rdf:type ontology:Q502895 . ?e rdf:type ontology:Q12737077 } GROUP BY ?l } . FILTER ( ?b = ?f ) }
action argmax
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Olaf II of Norway']
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?f ) { SELECT DISTINCT ?t ( COUNT ( ?s ) AS ?x ) WHERE { ?t rdf:type ontology:common_name . ?s rdf:type ontology:occupation . ?s property:patron_saint ?t } GROUP BY ?t } } . { SELECT DISTINCT ?l ( COUNT ( ?e ) AS ?b ) WHERE { ?e property:patron_saint ?l . ?l rdf:type ontology:common_name . ?e rdf:type ontology:occupation } GROUP BY ?l } . FILTER ( ?b = ?f ) }
[]
common name occupation
Q179718
SYSTEM
Catherine of Alexandria
Q179718
(c(Q12737077),P417,Q208331)
action argmax
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
[ANSWER] is the patron saint of max number of occupations
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?f ) { SELECT DISTINCT ?t ( COUNT ( ?s ) AS ?x ) WHERE { ?t rdf:type ontology:Q502895 . ?s rdf:type ontology:Q12737077 . ?s property:P417 ?t } GROUP BY ?t } } . { SELECT DISTINCT ?l ( COUNT ( ?e ) AS ?b ) WHERE { ?e property:P417 ?l . ?l rdf:type ontology:Q502895 . ?e rdf:type ontology:Q12737077 } GROUP BY ?l } . FILTER ( ?b = ?f ) }
Catherine of Alexandria
Catherine of Alexandria is the patron saint of max number of occupations
Catherine of Alexandria
action argmax
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Olaf II of Norway']
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?f ) { SELECT DISTINCT ?t ( COUNT ( ?s ) AS ?x ) WHERE { ?t rdf:type ontology:common_name . ?s rdf:type ontology:occupation . ?s property:patron_saint ?t } GROUP BY ?t } } . { SELECT DISTINCT ?l ( COUNT ( ?e ) AS ?b ) WHERE { ?e property:patron_saint ?l . ?l rdf:type ontology:common_name . ?e rdf:type ontology:occupation } GROUP BY ?l } . FILTER ( ?b = ?f ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q179718 Q5117210
P417
Q44539
USER
Does Church of St. Catherine, Banská Štiavnica have that person as their patron saint ?
(Q5117210,P417,Q179718)
action is_in
entity Q179718
action find
entity Q5117210
relation P417
['Q5117210', 'P417', 'Q179718']
ASK WHERE { resource:Q5117210 property:P417 resource:Q179718 }
Catherine of Alexandria Church of St. Catherine, Banská Štiavnica
action is_in
entity Catherine of Alexandria
action find
entity Church of St. Catherine, Banská Štiavnica
relation patron saint
['Church of St. Catherine, Banská Štiavnica', 'patron saint', 'Catherine of Alexandria']
ASK WHERE { resource:Church_of_St._Catherine,_Banská_Štiavnica property:patron_saint resource:Catherine_of_Alexandria }
[]
temple
SYSTEM
YES
(Q5117210,P417,Q179718)
action is_in
entity Q179718
action find
entity Q5117210
relation P417
[ANSWER]
['Q5117210', 'P417', 'Q179718']
ASK WHERE { resource:Q5117210 property:P417 resource:Q179718 }
Yes
action is_in
entity Catherine of Alexandria
action find
entity Church of St. Catherine, Banská Štiavnica
relation patron saint
['Church of St. Catherine, Banská Štiavnica', 'patron saint', 'Catherine of Alexandria']
ASK WHERE { resource:Church_of_St._Catherine,_Banská_Štiavnica property:patron_saint resource:Catherine_of_Alexandria }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can atleast 563 people perform with ?
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 563
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?g >= 563 ) . { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?g ) WHERE { ?r property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?r rdf:type ontology:Q502895 } GROUP BY ?f } }
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 563
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?g >= 563 ) . { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?g ) WHERE { ?r property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?r rdf:type ontology:common_name } GROUP BY ?f } }
[]
musical instrument common name
Q5994 Q46185 Q80019
SYSTEM
piano, bass guitar, double bass
Q46185 Q80019 Q5994 Q8338 Q8371 Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 563
[ANSWERS] can atleast 563 people perform with
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?g >= 563 ) . { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?g ) WHERE { ?r property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?r rdf:type ontology:Q502895 } GROUP BY ?f } }
bass guitar double bass piano trumpet cello violin organ drum kit
Piano, bass guitar and double bass can atleast 563 people perform with
piano bass guitar double bass
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 563
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?g >= 563 ) . { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?g ) WHERE { ?r property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?r rdf:type ontology:common_name } GROUP BY ?f } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1018003 Q5117210
P17
Q15617994
USER
Which administrative territories are Church of St. Catherine, Banská Štiavnica or Habartov situated in ?
OR((Q5117210,P17,c(Q15617994)), (Q1018003,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5117210
relation P17
action find
entity Q1018003
relation P17
type Q15617994
{'OR': [['Q5117210', 'P17', {'concept': 'Q15617994'}], ['Q1018003', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . { VALUES ( ?y ) { ( resource:Q5117210 ) ( resource:Q1018003 ) } . ?y property:P17 ?s } }
Habartov Church of St. Catherine, Banská Štiavnica
action filter_type
action union
action find
entity Church of St. Catherine, Banská Štiavnica
relation country
action find
entity Habartov
relation country
type designation for an administrative territorial entity
{'OR': [['Church of St. Catherine, Banská Štiavnica', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Habartov', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?y ) { ( resource:Church_of_St._Catherine,_Banská_Štiavnica ) ( resource:Habartov ) } . ?y property:country ?s } }
[]
designation for an administrative territorial entity
Q213 Q214
SYSTEM
Czech Republic, Slovakia
Q213 Q214
OR((Q5117210,P17,c(Q15617994)), (Q1018003,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5117210
relation P17
action find
entity Q1018003
relation P17
type Q15617994
[ANSWERS] are Church of St. Catherine, Banská Štiavnica or Habartov situated in
{'OR': [['Q5117210', 'P17', {'concept': 'Q15617994'}], ['Q1018003', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . { VALUES ( ?y ) { ( resource:Q5117210 ) ( resource:Q1018003 ) } . ?y property:P17 ?s } }
Czech Republic Slovakia
Czech Republic and Slovakia are Church of St. Catherine, Banská Štiavnica or Habartov situated in
Czech Republic Slovakia
action filter_type
action union
action find
entity Church of St. Catherine, Banská Štiavnica
relation country
action find
entity Habartov
relation country
type designation for an administrative territorial entity
{'OR': [['Church of St. Catherine, Banská Štiavnica', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Habartov', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?y ) { ( resource:Church_of_St._Catherine,_Banská_Štiavnica ) ( resource:Habartov ) } . ?y property:country ?s } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q213 Q214
P206
Q355304
USER
Which watercourses are located in the neighbourhood of Czech Republic and Slovakia ?
(Q213,P206,c(Q355304)) (Q214,P206,c(Q355304))
action union
action filter_type
action find
entity Q213
relation P206
type Q355304
action filter_type
action find
entity Q214
relation P206
type Q355304
['Q213', 'P206', {'concept': 'Q355304'}] ['Q214', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?i WHERE { ?x property:P206 ?i . VALUES ( ?x ) { ( resource:Q214 ) ( resource:Q213 ) } }
Czech Republic Slovakia
action union
action filter_type
action find
entity Czech Republic
relation located next to body of water
type watercourse
action filter_type
action find
entity Slovakia
relation located next to body of water
type watercourse
['Czech Republic', 'located next to body of water', {'concept': 'watercourse'}] ['Slovakia', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?i WHERE { ?x property:located_next_to_body_of_water ?i . VALUES ( ?x ) { ( resource:Slovakia ) ( resource:Czech_Republic ) } }
[]
watercourse
Q179251 Q179251 Q1653
SYSTEM
Danube for 3rd, Morava for 1st, 2nd
Q552 Q179251 Q582675 Q1331973 Q660208 Q577026 Q756302 Q179251 Q840694 Q4176549 Q748872 Q1653 Q134350
(Q213,P206,c(Q355304)) (Q214,P206,c(Q355304))
action union
action filter_type
action find
entity Q213
relation P206
type Q355304
action filter_type
action find
entity Q214
relation P206
type Q355304
[ANSWERS]
['Q213', 'P206', {'concept': 'Q355304'}] ['Q214', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?i WHERE { ?x property:P206 ?i . VALUES ( ?x ) { ( resource:Q214 ) ( resource:Q213 ) } }
Oder Morava Jizera Olza Thaya Opava Poprad Morava Dunajec Białka Ipoly Danube Tisza
Morava, Morava and Danube are located in the neighbourhood of Czech Republic and Slovakia
Morava Morava Danube
action union
action filter_type
action find
entity Czech Republic
relation located next to body of water
type watercourse
action filter_type
action find
entity Slovakia
relation located next to body of water
type watercourse
['Czech Republic', 'located next to body of water', {'concept': 'watercourse'}] ['Slovakia', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?i WHERE { ?x property:located_next_to_body_of_water ?i . VALUES ( ?x ) { ( resource:Slovakia ) ( resource:Czech_Republic ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q179251
P403
Q355304
USER
Which watercourses have their drainage ending at that one ?
(c(Q355304),P403,Q179251)
action filter_type
action find_reverse
entity Q179251
relation P403
type Q355304
[{'concept': 'Q355304'}, 'P403', 'Q179251']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q355304 . ?n property:P403 resource:Q179251 }
Morava
action filter_type
action find_reverse
entity Morava
relation mouth of the watercourse
type watercourse
[{'concept': 'watercourse'}, 'mouth of the watercourse', 'Morava']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:watercourse . ?n property:mouth_of_the_watercourse resource:Morava }
[]
watercourse
Clarification for simple ques.
Q179251
SYSTEM
Did you mean Morava ?
Q179251 Q179251 Q1653
(c(Q355304),P403,Q179251) (c(Q355304),P403,Q179251) (c(Q355304),P403,Q1653)
[ANSWER]
[{'concept': 'Q355304'}, 'P403', 'Q179251'] [{'concept': 'Q355304'}, 'P403', 'Q179251'] [{'concept': 'Q355304'}, 'P403', 'Q1653']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q355304 . ?n property:P403 resource:Q179251 }
Morava Morava Danube
Did you mean Morava ?
Morava
[{'concept': 'watercourse'}, 'mouth of the watercourse', 'Morava'] [{'concept': 'watercourse'}, 'mouth of the watercourse', 'Morava'] [{'concept': 'watercourse'}, 'mouth of the watercourse', 'Danube']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:watercourse . ?n property:mouth_of_the_watercourse resource:Morava }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q355304),P403,Q179251)
[{'concept': 'Q355304'}, 'P403', 'Q179251']
[{'concept': 'watercourse'}, 'mouth of the watercourse', 'Morava']
[]
Q854608 Q1636357 Q660208
SYSTEM
Bečva, Myjava, Thaya
Q1636357 Q749800 Q1022168 Q1754324 Q854608 Q735940 Q660208 Q949067 Q941512
(c(Q355304),P403,Q179251)
action filter_type
action find_reverse
entity Q179251
relation P403
type Q355304
[ANSWERS] have their drainage ending at that one
[{'concept': 'Q355304'}, 'P403', 'Q179251']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q355304 . ?n property:P403 resource:Q179251 }
Myjava Desná Březnice Krupá Bečva Mírovka Thaya Dřevnice Oskava (river)
Bečva, Myjava and Thaya have their drainage ending at that one
Bečva Myjava Thaya
action filter_type
action find_reverse
entity Morava
relation mouth of the watercourse
type watercourse
[{'concept': 'watercourse'}, 'mouth of the watercourse', 'Morava']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:watercourse . ?n property:mouth_of_the_watercourse resource:Morava }
[]