Simple Question (Direct)
Simple Question
Q11909167
P1303
Q34379
USER
Which musical instrument can Bernat Pomar perform with ?
(Q11909167,P1303,c(Q34379))
action filter_type
action find
entity Q11909167
relation P1303
type Q34379
['Q11909167', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { resource:Q11909167 property:P1303 ?q . ?q rdf:type ontology:Q34379 }
Bernat Pomar
action filter_type
action find
entity Bernat Pomar
relation instrument
type musical instrument
['Bernat Pomar', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { resource:Bernat_Pomar property:instrument ?q . ?q rdf:type ontology:musical_instrument }
[]
musical instrument
Q8355
SYSTEM
violin
Q8355
(Q11909167,P1303,c(Q34379))
action filter_type
action find
entity Q11909167
relation P1303
type Q34379
Bernat Pomar can perform the [ANSWER]
['Q11909167', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { resource:Q11909167 property:P1303 ?q . ?q rdf:type ontology:Q34379 }
violin
Bernat Pomar can perform the violin
violin
action filter_type
action find
entity Bernat Pomar
relation instrument
type musical instrument
['Bernat Pomar', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { resource:Bernat_Pomar property:instrument ?q . ?q rdf:type ontology:musical_instrument }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11909167
P19
Q56061
USER
Where was Bernat Pomar born ?
(Q11909167,P19,c(Q56061))
action filter_type
action find
entity Q11909167
relation P19
type Q56061
['Q11909167', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q11909167 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Bernat Pomar
action filter_type
action find
entity Bernat Pomar
relation place of birth
type administrative territorial entity
['Bernat Pomar', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Bernat_Pomar property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8826
SYSTEM
Palma
Q8826
(Q11909167,P19,c(Q56061))
action filter_type
action find
entity Q11909167
relation P19
type Q56061
Bernat Pomar was born [ANSWER]
['Q11909167', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q11909167 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Palma
Bernat Pomar was born Palma
Palma
action filter_type
action find
entity Bernat Pomar
relation place of birth
type administrative territorial entity
['Bernat Pomar', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Bernat_Pomar property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q15436808
Q56061
USER
And what about Liselotte Schreiner?
(Q15436808,P19,c(Q56061))
action filter_type
action find
entity Q15436808
relation P19
type Q56061
['Q15436808', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q15436808 property:P19 ?m . ?m rdf:type ontology:Q56061 }
Liselotte Schreiner
action filter_type
action find
entity Liselotte Schreiner
relation place of birth
type administrative territorial entity
['Liselotte Schreiner', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Liselotte_Schreiner property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1085
SYSTEM
Prague
Q1085
(Q15436808,P19,c(Q56061))
action filter_type
action find
entity Q15436808
relation P19
type Q56061
[ANSWER]
['Q15436808', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q15436808 property:P19 ?m . ?m rdf:type ontology:Q56061 }
Prague
Prague
action filter_type
action find
entity Liselotte Schreiner
relation place of birth
type administrative territorial entity
['Liselotte Schreiner', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Liselotte_Schreiner property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1085
P190
Q515
USER
Which cities are twin town of that administrative territory ?
(c(Q515),P190,Q1085)
action filter_type
action find
entity Q1085
relation P190
type Q515
[{'concept': 'Q515'}, 'P190', 'Q1085']
SELECT DISTINCT ?z WHERE { resource:Q1085 property:P190 ?z . ?z rdf:type ontology:Q515 }
Prague
action filter_type
action find
entity Prague
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Prague']
SELECT DISTINCT ?z WHERE { resource:Prague property:sister_city ?z . ?z rdf:type ontology:city }
[]
city
Q1486 Q1794 Q19689
SYSTEM
Buenos Aires, Frankfurt, Tirana
Q3572 Q1794 Q19689 Q1486 Q3936 Q9005
(c(Q515),P190,Q1085)
action filter_type
action find
entity Q1085
relation P190
type Q515
[ANSWERS] are twin town of that administrative territory
[{'concept': 'Q515'}, 'P190', 'Q1085']
SELECT DISTINCT ?z WHERE { resource:Q1085 property:P190 ?z . ?z rdf:type ontology:Q515 }
Tunis Frankfurt Tirana Buenos Aires Bamberg Brussels
Buenos Aires, Frankfurt and Tirana are twin town of that administrative territory
Buenos Aires Frankfurt Tirana
action filter_type
action find
entity Prague
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Prague']
SELECT DISTINCT ?z WHERE { resource:Prague property:sister_city ?z . ?z rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1486 Q1794 Q19689
P190
Q515
USER
Which cities are the sister cities of those ones ?
(Q1486,P190,c(Q515)) (Q1794,P190,c(Q515)) (Q19689,P190,c(Q515))
action filter_type
action find
entity prev_answer
relation P190
type Q515
['Q1486', 'P190', {'concept': 'Q515'}] ['Q1794', 'P190', {'concept': 'Q515'}] ['Q19689', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q515 . ?n property:P190 ?p . VALUES ( ?n ) { ( resource:Q3572 ) ( resource:Q1794 ) ( resource:Q19689 ) } }
Buenos Aires Frankfurt Tirana
action filter_type
action find
entity prev_answer
relation sister city
type city
['Buenos Aires', 'sister city', {'concept': 'city'}] ['Frankfurt', 'sister city', {'concept': 'city'}] ['Tirana', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:city . ?n property:sister_city ?p . VALUES ( ?n ) { ( resource:Tunis ) ( resource:Frankfurt ) ( resource:Tirana ) } }
[]
city
Q1899 Q1899 Q456
SYSTEM
Lyon for 3rd, Kyiv for 1st, 2nd
Q2900 Q8684 Q8652 Q2887 Q1953 Q1899 Q2844 Q2079 Q456 Q8684 Q23482 Q9005 Q19660 Q11194 Q3861 Q1899
(Q1486,P190,c(Q515)) (Q1794,P190,c(Q515)) (Q19689,P190,c(Q515))
action filter_type
action find
entity prev_answer
relation P190
type Q515
[ANSWERS]
['Q1486', 'P190', {'concept': 'Q515'}] ['Q1794', 'P190', {'concept': 'Q515'}] ['Q19689', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q515 . ?n property:P190 ?p . VALUES ( ?n ) { ( resource:Q3572 ) ( resource:Q1794 ) ( resource:Q19689 ) } }
Quito Seoul Miami Santiago Yerevan Kyiv Brasília Leipzig Lyon Seoul Marseille Brussels Bucharest Sarajevo Doha Kyiv
Kyiv, Kyiv and Lyon are the sister cities of those ones
Kyiv Kyiv Lyon
action filter_type
action find
entity prev_answer
relation sister city
type city
['Buenos Aires', 'sister city', {'concept': 'city'}] ['Frankfurt', 'sister city', {'concept': 'city'}] ['Tirana', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:city . ?n property:sister_city ?p . VALUES ( ?n ) { ( resource:Tunis ) ( resource:Frankfurt ) ( resource:Tirana ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1899
P47
Q1048835
USER
Which political territory has a shared border with that city ?
(Q1899,P47,c(Q1048835))
action filter_type
action find
entity Q1899
relation P47
type Q1048835
['Q1899', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q1899 property:P47 ?w . ?w rdf:type ontology:Q1048835 }
Kyiv
action filter_type
action find
entity Kyiv
relation shares border with
type political territorial entity
['Kyiv', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Kyiv property:shares_border_with ?w . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Clarification for simple ques.
Q1899
SYSTEM
Did you mean Kyiv ?
Q1899 Q1899 Q456
(Q1899,P47,c(Q1048835)) (Q1899,P47,c(Q1048835)) (Q456,P47,c(Q1048835))
[ANSWER]
['Q1899', 'P47', {'concept': 'Q1048835'}] ['Q1899', 'P47', {'concept': 'Q1048835'}] ['Q456', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q1899 property:P47 ?w . ?w rdf:type ontology:Q1048835 }
Kyiv Kyiv Lyon
Did you mean Kyiv ?
Kyiv
['Kyiv', 'shares border with', {'concept': 'political territorial entity'}] ['Kyiv', 'shares border with', {'concept': 'political territorial entity'}] ['Lyon', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Kyiv property:shares_border_with ?w . ?w rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1899,P47,c(Q1048835))
['Q1899', 'P47', {'concept': 'Q1048835'}]
['Kyiv', 'shares border with', {'concept': 'political territorial entity'}]
[]
Q170036
SYSTEM
Kiev Oblast
Q170036
(Q1899,P47,c(Q1048835))
action filter_type
action find
entity Q1899
relation P47
type Q1048835
Of [ANSWER] has a shared border with that city
['Q1899', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q1899 property:P47 ?w . ?w rdf:type ontology:Q1048835 }
Kiev Oblast
Of Kiev Oblast has a shared border with that city
Kiev Oblast
action filter_type
action find
entity Kyiv
relation shares border with
type political territorial entity
['Kyiv', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Kyiv property:shares_border_with ?w . ?w rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P36
Q515
USER
How many cities are called the capital of that political territory ?
(Q170036,P36,c(Q515))
action count
action filter_type
action find
entity Q170036
relation P36
type Q515
['Q170036', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t rdf:type ontology:Q515 . resource:Q170036 property:P36 ?t }
action count
action filter_type
action find
entity Kiev Oblast
relation capital
type city
['Kiev Oblast', 'capital', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t rdf:type ontology:city . resource:Kiev_Oblast property:capital ?t }
[]
city
SYSTEM
1
Q1899
(Q170036,P36,c(Q515))
action count
action filter_type
action find
entity Q170036
relation P36
type Q515
[ANSWER]
['Q170036', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t rdf:type ontology:Q515 . resource:Q170036 property:P36 ?t }
Kyiv
1
action count
action filter_type
action find
entity Kiev Oblast
relation capital
type city
['Kiev Oblast', 'capital', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t rdf:type ontology:city . resource:Kiev_Oblast property:capital ?t }
[]