Simple Question (Direct)
Simple Question
Q31136
P19
Q56061
USER
Which administrative territory was Gábor Béla Fodor born at ?
(Q31136,P19,c(Q56061))
action filter_type
action find
entity Q31136
relation P19
type Q56061
['Q31136', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q31136 property:P19 ?z . ?z rdf:type ontology:Q56061 }
Gábor Béla Fodor
action filter_type
action find
entity Gábor Béla Fodor
relation place of birth
type administrative territorial entity
['Gábor Béla Fodor', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Gábor_Béla_Fodor property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1781
SYSTEM
Budapest
Q1781
(Q31136,P19,c(Q56061))
action filter_type
action find
entity Q31136
relation P19
type Q56061
Gábor Béla Fodor was born in [ANSWER]
['Q31136', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q31136 property:P19 ?z . ?z rdf:type ontology:Q56061 }
Budapest
Gábor Béla Fodor was born in Budapest
Budapest
action filter_type
action find
entity Gábor Béla Fodor
relation place of birth
type administrative territorial entity
['Gábor Béla Fodor', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Gábor_Béla_Fodor property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q31136
P106
Q12737077
USER
What is the profession of Gábor Béla Fodor ?
(Q31136,P106,c(Q12737077))
action filter_type
action find
entity Q31136
relation P106
type Q12737077
['Q31136', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . resource:Q31136 property:P106 ?k }
Gábor Béla Fodor
action filter_type
action find
entity Gábor Béla Fodor
relation occupation
type occupation
['Gábor Béla Fodor', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . resource:Gábor_Béla_Fodor property:occupation ?k }
[]
occupation
Q593644
SYSTEM
chemist
Q593644
(Q31136,P106,c(Q12737077))
action filter_type
action find
entity Q31136
relation P106
type Q12737077
The profession of Gábor Béla Fodor is a [ANSWER]
['Q31136', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . resource:Q31136 property:P106 ?k }
chemist
The profession of Gábor Béla Fodor is a chemist
chemist
action filter_type
action find
entity Gábor Béla Fodor
relation occupation
type occupation
['Gábor Béla Fodor', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . resource:Gábor_Béla_Fodor property:occupation ?k }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1958910
Q12737077
USER
And what about Joos van Barneveld?
(Q1958910,P106,c(Q12737077))
action filter_type
action find
entity Q1958910
relation P106
type Q12737077
['Q1958910', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . resource:Q1958910 property:P106 ?w }
Joos van Barneveld
action filter_type
action find
entity Joos van Barneveld
relation occupation
type occupation
['Joos van Barneveld', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . resource:Joos_van_Barneveld property:occupation ?w }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q1958910,P106,c(Q12737077))
action filter_type
action find
entity Q1958910
relation P106
type Q12737077
[ANSWER]
['Q1958910', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . resource:Q1958910 property:P106 ?w }
association football player
association football player
action filter_type
action find
entity Joos van Barneveld
relation occupation
type occupation
['Joos van Barneveld', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . resource:Joos_van_Barneveld property:occupation ?w }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1781
P190
Q56061
USER
Which administrative territories are sister town of Budapest ?
(c(Q56061),P190,Q1781)
action filter_type
action find
entity Q1781
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q1781']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . resource:Q1781 property:P190 ?s }
Budapest
action filter_type
action find
entity Budapest
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Budapest']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . resource:Budapest property:sister_city ?s }
[]
administrative territorial entity
Q2807 Q216 Q64
SYSTEM
Madrid, Vilnius, Berlin
Q1741 Q174 Q216 Q270 Q25409 Q33935 Q406 Q16558 Q2807 Q597 Q956 Q2634 Q2044 Q64 Q13386 Q1861 Q60 Q3766 Q36036
(c(Q56061),P190,Q1781)
action filter_type
action find
entity Q1781
relation P190
type Q56061
[ANSWERS] are sister town of Budapest
[{'concept': 'Q56061'}, 'P190', 'Q1781']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . resource:Q1781 property:P190 ?s }
Vienna São Paulo Vilnius Warsaw Košice Tel Aviv Istanbul Fort Worth Madrid Lisbon Beijing Naples Florence Berlin Lecce Bangkok New York City Damascus Lviv
Madrid, Vilnius and Berlin are sister town of Budapest
Madrid Vilnius Berlin
action filter_type
action find
entity Budapest
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Budapest']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . resource:Budapest property:sister_city ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2807
P206
Q355304
USER
Which watercourse is situated in the neighbourhood of Madrid ?
(Q2807,P206,c(Q355304))
action filter_type
action find
entity Q2807
relation P206
type Q355304
['Q2807', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?o WHERE { resource:Q2807 property:P206 ?o . ?o rdf:type ontology:Q355304 }
Madrid
action filter_type
action find
entity Madrid
relation located next to body of water
type watercourse
['Madrid', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?o WHERE { resource:Madrid property:located_next_to_body_of_water ?o . ?o rdf:type ontology:watercourse }
[]
watercourse
Q16512
SYSTEM
Manzanares
Q16512
(Q2807,P206,c(Q355304))
action filter_type
action find
entity Q2807
relation P206
type Q355304
[ANSWER] is situated in the neighbourhood of Madrid
['Q2807', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?o WHERE { resource:Q2807 property:P206 ?o . ?o rdf:type ontology:Q355304 }
Manzanares
Manzanares is situated in the neighbourhood of Madrid
Manzanares
action filter_type
action find
entity Madrid
relation located next to body of water
type watercourse
['Madrid', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?o WHERE { resource:Madrid property:located_next_to_body_of_water ?o . ?o rdf:type ontology:watercourse }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2807
P921
Q571
USER
Which books have Madrid as their main topic ?
(c(Q571),P921,Q2807)
action filter_type
action find_reverse
entity Q2807
relation P921
type Q571
[{'concept': 'Q571'}, 'P921', 'Q2807']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q571 . ?v property:P921 resource:Q2807 }
Madrid
action filter_type
action find_reverse
entity Madrid
relation main subject
type book
[{'concept': 'book'}, 'main subject', 'Madrid']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:book . ?v property:main_subject resource:Madrid }
[]
book
Q24491781 Q21769987
SYSTEM
Las calles de Madrid: noticias, tradiciones y curiosidades, Diccionario biográfico matritense (1912)
Q24491781 Q21769987
(c(Q571),P921,Q2807)
action filter_type
action find_reverse
entity Q2807
relation P921
type Q571
[ANSWERS] have Madrid as their main topic
[{'concept': 'Q571'}, 'P921', 'Q2807']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q571 . ?v property:P921 resource:Q2807 }
Las calles de Madrid: noticias, tradiciones y curiosidades Diccionario biográfico matritense (1912)
Las calles de Madrid: noticias, tradiciones y curiosidades and Diccionario biográfico matritense (1912) have Madrid as their main topic
Las calles de Madrid: noticias, tradiciones y curiosidades Diccionario biográfico matritense (1912)
action filter_type
action find_reverse
entity Madrid
relation main subject
type book
[{'concept': 'book'}, 'main subject', 'Madrid']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:book . ?v property:main_subject resource:Madrid }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2807
P1376
Q7275
USER
Which states have Madrid as their capital ?
(Q2807,P1376,c(Q7275))
action filter_type
action find
entity Q2807
relation P1376
type Q7275
['Q2807', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?d WHERE { resource:Q2807 property:P1376 ?d . ?d rdf:type ontology:Q7275 }
Madrid
action filter_type
action find
entity Madrid
relation capital of
type state
['Madrid', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?d WHERE { resource:Madrid property:capital_of ?d . ?d rdf:type ontology:state }
[]
state
Q1709185 Q1044536 Q497777
SYSTEM
Kingdom of Spain under Joseph Bonaparte, Spain under the Restoration, First Spanish Republic
Q1044536 Q178038 Q1709185 Q497777
(Q2807,P1376,c(Q7275))
action filter_type
action find
entity Q2807
relation P1376
type Q7275
[ANSWERS] have Madrid as their capital
['Q2807', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?d WHERE { resource:Q2807 property:P1376 ?d . ?d rdf:type ontology:Q7275 }
Spain under the Restoration Second Spanish Republic Kingdom of Spain under Joseph Bonaparte First Spanish Republic
Kingdom of Spain under Joseph Bonaparte, Spain under the Restoration and First Spanish Republic have Madrid as their capital
Kingdom of Spain under Joseph Bonaparte Spain under the Restoration First Spanish Republic
action filter_type
action find
entity Madrid
relation capital of
type state
['Madrid', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?d WHERE { resource:Madrid property:capital_of ?d . ?d rdf:type ontology:state }
[]
Clarification
Simple Question|Single Entity|Indirect
Q497777
P36
Q56061
USER
What is the capital of that state ?
(Q497777,P36,c(Q56061))
action filter_type
action find
entity Q497777
relation P36
type Q56061
['Q497777', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q497777 property:P36 ?j . ?j rdf:type ontology:Q56061 }
First Spanish Republic
action filter_type
action find
entity First Spanish Republic
relation capital
type administrative territorial entity
['First Spanish Republic', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:First_Spanish_Republic property:capital ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q1044536
SYSTEM
Did you mean Spain under the Restoration ?
Q1709185 Q1044536 Q497777
(Q1709185,P36,c(Q56061)) (Q1044536,P36,c(Q56061)) (Q497777,P36,c(Q56061))
[ANSWER]
['Q1709185', 'P36', {'concept': 'Q56061'}] ['Q1044536', 'P36', {'concept': 'Q56061'}] ['Q497777', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q497777 property:P36 ?j . ?j rdf:type ontology:Q56061 }
Kingdom of Spain under Joseph Bonaparte Spain under the Restoration First Spanish Republic
Did you mean Spain under the Restoration ?
Spain under the Restoration
['Kingdom of Spain under Joseph Bonaparte', 'capital', {'concept': 'administrative territorial entity'}] ['Spain under the Restoration', 'capital', {'concept': 'administrative territorial entity'}] ['First Spanish Republic', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:First_Spanish_Republic property:capital ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant First Spanish Republic. Could you tell me the answer for that?
(Q497777,P36,c(Q56061))
Q497777
['Q497777', 'P36', {'concept': 'Q56061'}]
['First Spanish Republic', 'capital', {'concept': 'administrative territorial entity'}]
[]
Q2807
SYSTEM
Madrid
Q2807
(Q497777,P36,c(Q56061))
action filter_type
action find
entity Q497777
relation P36
type Q56061
The capital of that state is [ANSWER]
['Q497777', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q497777 property:P36 ?j . ?j rdf:type ontology:Q56061 }
Madrid
The capital of that state is Madrid
Madrid
action filter_type
action find
entity First Spanish Republic
relation capital
type administrative territorial entity
['First Spanish Republic', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:First_Spanish_Republic property:capital ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q2807 Q467829 Q11518699
P6
Q502895
USER
Does that administrative territory have a government lead by Alberto Ruiz-Gallardón and Ken'ichirō Kimura ?
(Q2807,P6,Q467829) (Q2807,P6,Q11518699)
action is_in
entity Q2807
action intersection
action find_reverse
entity Q467829
relation P6
action find_reverse
entity Q11518699
relation P6
['Q2807', 'P6', 'Q467829'] ['Q2807', 'P6', 'Q11518699']
ASK WHERE { resource:Q2807 property:P6 resource:Q11518699 . resource:Q2807 property:P6 resource:Q467829 }
Madrid Alberto Ruiz-Gallardón Ken'ichirō Kimura
action is_in
entity Madrid
action intersection
action find_reverse
entity Alberto Ruiz-Gallardón
relation head of government
action find_reverse
entity Ken'ichirō Kimura
relation head of government
['Madrid', 'head of government', 'Alberto Ruiz-Gallardón'] ['Madrid', 'head of government', "Ken'ichirō Kimura"]
ASK WHERE { resource:Madrid property:head_of_government resource:Ken'ichirō_Kimura . resource:Madrid property:head_of_government resource:Alberto_Ruiz-Gallardón }
[]
common name
SYSTEM
YES and NO respectively
(Q2807,P6,Q467829) (Q2807,P6,Q11518699)
action is_in
entity Q2807
action intersection
action find_reverse
entity Q467829
relation P6
action find_reverse
entity Q11518699
relation P6
[ANSWER]
['Q2807', 'P6', 'Q467829'] ['Q2807', 'P6', 'Q11518699']
ASK WHERE { resource:Q2807 property:P6 resource:Q11518699 . resource:Q2807 property:P6 resource:Q467829 }
YES and NO respectively
action is_in
entity Madrid
action intersection
action find_reverse
entity Alberto Ruiz-Gallardón
relation head of government
action find_reverse
entity Ken'ichirō Kimura
relation head of government
['Madrid', 'head of government', 'Alberto Ruiz-Gallardón'] ['Madrid', 'head of government', "Ken'ichirō Kimura"]
ASK WHERE { resource:Madrid property:head_of_government resource:Ken'ichirō_Kimura . resource:Madrid property:head_of_government resource:Alberto_Ruiz-Gallardón }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2807
P417
Q502895
USER
Which person is the patron saint of that administrative territory ?
action filter_type
action find
entity Q2807
relation P417
type Q502895
SELECT DISTINCT ?b WHERE { resource:Q2807 property:P417 ?b . ?b rdf:type ontology:Q502895 }
Madrid
action filter_type
action find
entity Madrid
relation patron saint
type common name
SELECT DISTINCT ?b WHERE { resource:Madrid property:patron_saint ?b . ?b rdf:type ontology:common_name }
[]
common name
Q379685
SYSTEM
Isidore the Laborer
Q379685
action filter_type
action find
entity Q2807
relation P417
type Q502895
[ANSWER] is the patron saint of that administrative territory
SELECT DISTINCT ?b WHERE { resource:Q2807 property:P417 ?b . ?b rdf:type ontology:Q502895 }
Isidore the Laborer
Isidore the Laborer is the patron saint of that administrative territory
Isidore the Laborer
action filter_type
action find
entity Madrid
relation patron saint
type common name
SELECT DISTINCT ?b WHERE { resource:Madrid property:patron_saint ?b . ?b rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P417
Q56061
USER
How many administrative territories have adopted that person as patron saint ?
(c(Q56061),P417,Q379685)
action count
action filter_type
action find_reverse
entity Q379685
relation P417
type Q56061
[{'concept': 'Q56061'}, 'P417', 'Q379685']
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { ?v rdf:type ontology:Q56061 . ?v property:P417 resource:Q379685 }
action count
action filter_type
action find_reverse
entity Isidore the Laborer
relation patron saint
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'patron saint', 'Isidore the Laborer']
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { ?v rdf:type ontology:administrative_territorial_entity . ?v property:patron_saint resource:Isidore_the_Laborer }
[]
administrative territorial entity
SYSTEM
1
Q2807
(c(Q56061),P417,Q379685)
action count
action filter_type
action find_reverse
entity Q379685
relation P417
type Q56061
[ANSWER]
[{'concept': 'Q56061'}, 'P417', 'Q379685']
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { ?v rdf:type ontology:Q56061 . ?v property:P417 resource:Q379685 }
Madrid
1
action count
action filter_type
action find_reverse
entity Isidore the Laborer
relation patron saint
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'patron saint', 'Isidore the Laborer']
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { ?v rdf:type ontology:administrative_territorial_entity . ?v property:patron_saint resource:Isidore_the_Laborer }
[]