Simple Question (Direct)
Simple Question
Q11818028
P1303
Q34379
USER
Which musical instrument does Piotr Salaber know to play ?
(Q11818028,P1303,c(Q34379))
action filter_type
action find
entity Q11818028
relation P1303
type Q34379
['Q11818028', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?w WHERE { resource:Q11818028 property:P1303 ?w . ?w rdf:type ontology:Q34379 }
Piotr Salaber
action filter_type
action find
entity Piotr Salaber
relation instrument
type musical instrument
['Piotr Salaber', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?w WHERE { resource:Piotr_Salaber property:instrument ?w . ?w rdf:type ontology:musical_instrument }
[]
musical instrument
Q5994
SYSTEM
piano
Q5994
(Q11818028,P1303,c(Q34379))
action filter_type
action find
entity Q11818028
relation P1303
type Q34379
Piotr Salaber knows the [ANSWER]
['Q11818028', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?w WHERE { resource:Q11818028 property:P1303 ?w . ?w rdf:type ontology:Q34379 }
piano
Piotr Salaber knows the piano
piano
action filter_type
action find
entity Piotr Salaber
relation instrument
type musical instrument
['Piotr Salaber', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?w WHERE { resource:Piotr_Salaber property:instrument ?w . ?w rdf:type ontology:musical_instrument }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11818028
P21
Q290
USER
What is the sex of that person ?
(Q5994,P21,c(Q290))
action filter_type
action find
entity Q11818028
relation P21
type Q290
['Q5994', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q11818028 property:P21 ?u . ?u rdf:type ontology:Q290 }
Piotr Salaber
action filter_type
action find
entity Piotr Salaber
relation gender
type sex
['piano', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Piotr_Salaber property:gender ?u . ?u rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5994,P21,c(Q290))
action filter_type
action find
entity Q11818028
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q5994', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q11818028 property:P21 ?u . ?u rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Piotr Salaber
relation gender
type sex
['piano', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Piotr_Salaber property:gender ?u . ?u rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11818028
P27
Q15617994
USER
Which administrative territory is Piotr Salaber an inhabitant of ?
(Q11818028,P27,c(Q15617994))
action filter_type
action find
entity Q11818028
relation P27
type Q15617994
['Q11818028', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q11818028 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Piotr Salaber
action filter_type
action find
entity Piotr Salaber
relation country of citizenship
type designation for an administrative territorial entity
['Piotr Salaber', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Piotr_Salaber property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(Q11818028,P27,c(Q15617994))
action filter_type
action find
entity Q11818028
relation P27
type Q15617994
[ANSWER] is Piotr Salaber an inhabitant of
['Q11818028', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q11818028 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Poland
Poland is Piotr Salaber an inhabitant of
Poland
action filter_type
action find
entity Piotr Salaber
relation country of citizenship
type designation for an administrative territorial entity
['Piotr Salaber', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Piotr_Salaber property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q594707
Q15617994
USER
And how about Maurice Deville?
(Q594707,P27,c(Q15617994))
action filter_type
action find
entity Q594707
relation P27
type Q15617994
['Q594707', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q594707 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
Maurice Deville
action filter_type
action find
entity Maurice Deville
relation country of citizenship
type designation for an administrative territorial entity
['Maurice Deville', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Maurice_Deville property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q32
SYSTEM
Luxembourg
Q32
(Q594707,P27,c(Q15617994))
action filter_type
action find
entity Q594707
relation P27
type Q15617994
[ANSWER]
['Q594707', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q594707 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
Luxembourg
Luxembourg
action filter_type
action find
entity Maurice Deville
relation country of citizenship
type designation for an administrative territorial entity
['Maurice Deville', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Maurice_Deville property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3361010 Q36
P206
Q355304
USER
Which watercourses are located in the neighbourhood of Poland or Palace of Justice ?
OR((Q36,P206,c(Q355304)), (Q3361010,P206,c(Q355304)))
action filter_type
action union
action find
entity Q36
relation P206
action find
entity Q3361010
relation P206
type Q355304
{'OR': [['Q36', 'P206', {'concept': 'Q355304'}], ['Q3361010', 'P206', {'concept': 'Q355304'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q36 property:P206 ?j } UNION { resource:Q3361010 property:P206 ?j } } . ?j rdf:type ontology:Q355304 }
Palace of Justice Poland
action filter_type
action union
action find
entity Poland
relation located next to body of water
action find
entity Palace of Justice
relation located next to body of water
type watercourse
{'OR': [['Poland', 'located next to body of water', {'concept': 'watercourse'}], ['Palace of Justice', 'located next to body of water', {'concept': 'watercourse'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Poland property:located_next_to_body_of_water ?j } UNION { resource:Palace_of_Justice property:located_next_to_body_of_water ?j } } . ?j rdf:type ontology:watercourse }
[]
watercourse
Q156237 Q577026 Q840694 Q214646 Q756302 Q552 Q828869 Q548 Q2142065 Q5602
SYSTEM
Some of them are Western Bug, Opava, Dunajec, Dâmboviţa River, Poprad, Oder, Noteć, Vistula, Divoká Orlice, Lusatian Neisse
Q756302 Q552 Q2142065 Q4176549 Q548 Q840694 Q582675 Q5602 Q1331973 Q156237 Q828869 Q214646 Q577026
OR((Q36,P206,c(Q355304)), (Q3361010,P206,c(Q355304)))
action filter_type
action union
action find
entity Q36
relation P206
action find
entity Q3361010
relation P206
type Q355304
[ANSWERS] are located in the neighbourhood of Poland or Palace of Justice
{'OR': [['Q36', 'P206', {'concept': 'Q355304'}], ['Q3361010', 'P206', {'concept': 'Q355304'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q36 property:P206 ?j } UNION { resource:Q3361010 property:P206 ?j } } . ?j rdf:type ontology:Q355304 }
Poprad Oder Divoká Orlice Białka Vistula Dunajec Jizera Lusatian Neisse Olza Western Bug Noteć Dâmboviţa River Opava
Western Bug, Opava, Dunajec, Dâmboviţa River, Poprad, Oder, Noteć, Vistula, Divoká Orlice and Lusatian Neisse are located in the neighbourhood of Poland or Palace of Justice
Western Bug Opava Dunajec Dâmboviţa River Poprad Oder Noteć Vistula Divoká Orlice Lusatian Neisse
action filter_type
action union
action find
entity Poland
relation located next to body of water
action find
entity Palace of Justice
relation located next to body of water
type watercourse
{'OR': [['Poland', 'located next to body of water', {'concept': 'watercourse'}], ['Palace of Justice', 'located next to body of water', {'concept': 'watercourse'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Poland property:located_next_to_body_of_water ?j } UNION { resource:Palace_of_Justice property:located_next_to_body_of_water ?j } } . ?j rdf:type ontology:watercourse }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q355304 Q515 Q486972
USER
How many watercourses are located in the neighbourhood of exactly 7 cities or human settlements ?
(c(Q515)|c(Q486972),P206,c(Q355304))
action count
action equal
action union
action find_reverse_tuple_counts
relation P206
type Q355304
type Q515
action find_reverse_tuple_counts
relation P206
type Q355304
type Q486972
value 7
[[{'concept': 'Q515'}, {'concept': 'Q486972'}], 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) ?q WHERE { { ?m property:P206 ?q . ?q rdf:type ontology:Q355304 . ?m rdf:type ontology:Q515 } UNION { ?q rdf:type ontology:Q355304 . ?m rdf:type ontology:Q486972 . ?m property:P206 ?q } } GROUP BY ?q } . FILTER ( ?p = 7 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation located next to body of water
type watercourse
type city
action find_reverse_tuple_counts
relation located next to body of water
type watercourse
type human settlement
value 7
[[{'concept': 'city'}, {'concept': 'human settlement'}], 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) ?q WHERE { { ?m property:located_next_to_body_of_water ?q . ?q rdf:type ontology:watercourse . ?m rdf:type ontology:city } UNION { ?q rdf:type ontology:watercourse . ?m rdf:type ontology:human_settlement . ?m property:located_next_to_body_of_water ?q } } GROUP BY ?q } . FILTER ( ?p = 7 ) }
[]
watercourse city human settlement
SYSTEM
3
Q1653 Q11104926 Q317060
(c(Q515)|c(Q486972),P206,c(Q355304))
action count
action equal
action union
action find_reverse_tuple_counts
relation P206
type Q355304
type Q515
action find_reverse_tuple_counts
relation P206
type Q355304
type Q486972
value 7
[ANSWER]
[[{'concept': 'Q515'}, {'concept': 'Q486972'}], 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) ?q WHERE { { ?m property:P206 ?q . ?q rdf:type ontology:Q355304 . ?m rdf:type ontology:Q515 } UNION { ?q rdf:type ontology:Q355304 . ?m rdf:type ontology:Q486972 . ?m property:P206 ?q } } GROUP BY ?q } . FILTER ( ?p = 7 ) }
Danube Pełchówka Altmühl
3
action count
action equal
action union
action find_reverse_tuple_counts
relation located next to body of water
type watercourse
type city
action find_reverse_tuple_counts
relation located next to body of water
type watercourse
type human settlement
value 7
[[{'concept': 'city'}, {'concept': 'human settlement'}], 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) ?q WHERE { { ?m property:located_next_to_body_of_water ?q . ?q rdf:type ontology:watercourse . ?m rdf:type ontology:city } UNION { ?q rdf:type ontology:watercourse . ?m rdf:type ontology:human_settlement . ?m property:located_next_to_body_of_water ?q } } GROUP BY ?q } . FILTER ( ?p = 7 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q314060 Q214646
P206
Q515
USER
Which cities are located next to Dâmboviţa River or Würm ?
OR((c(Q515),P206,Q214646), (c(Q515),P206,Q314060))
action filter_type
action union
action find_reverse
entity Q214646
relation P206
action find_reverse
entity Q314060
relation P206
type Q515
{'OR': [[{'concept': 'Q515'}, 'P206', 'Q214646'], [{'concept': 'Q515'}, 'P206', 'Q314060']]}
SELECT DISTINCT ?x WHERE { { ?x property:P206 ?d . VALUES ( ?d ) { ( resource:Q314060 ) ( resource:Q214646 ) } } . ?x rdf:type ontology:Q515 }
Würm Dâmboviţa River
action filter_type
action union
action find_reverse
entity Dâmboviţa River
relation located next to body of water
action find_reverse
entity Würm
relation located next to body of water
type city
{'OR': [[{'concept': 'city'}, 'located next to body of water', 'Dâmboviţa River'], [{'concept': 'city'}, 'located next to body of water', 'Würm']]}
SELECT DISTINCT ?x WHERE { { ?x property:located_next_to_body_of_water ?d . VALUES ( ?d ) { ( resource:Würm ) ( resource:Dâmboviţa_River ) } } . ?x rdf:type ontology:city }
[]
city
Q19660 Q3046
SYSTEM
Bucharest, Pforzheim
Q19660 Q3046
OR((c(Q515),P206,Q214646), (c(Q515),P206,Q314060))
action filter_type
action union
action find_reverse
entity Q214646
relation P206
action find_reverse
entity Q314060
relation P206
type Q515
[ANSWERS] are located next to Dâmboviţa River or Würm
{'OR': [[{'concept': 'Q515'}, 'P206', 'Q214646'], [{'concept': 'Q515'}, 'P206', 'Q314060']]}
SELECT DISTINCT ?x WHERE { { ?x property:P206 ?d . VALUES ( ?d ) { ( resource:Q314060 ) ( resource:Q214646 ) } } . ?x rdf:type ontology:Q515 }
Bucharest Pforzheim
Bucharest and Pforzheim are located next to Dâmboviţa River or Würm
Bucharest Pforzheim
action filter_type
action union
action find_reverse
entity Dâmboviţa River
relation located next to body of water
action find_reverse
entity Würm
relation located next to body of water
type city
{'OR': [[{'concept': 'city'}, 'located next to body of water', 'Dâmboviţa River'], [{'concept': 'city'}, 'located next to body of water', 'Würm']]}
SELECT DISTINCT ?x WHERE { { ?x property:located_next_to_body_of_water ?d . VALUES ( ?d ) { ( resource:Würm ) ( resource:Dâmboviţa_River ) } } . ?x rdf:type ontology:city }
[]