Simple Question (Direct)
Simple Question
Q6937772
P840
Q56061
USER
Where is Murder in the Private Car set in ?
(Q6937772,P840,c(Q56061))
action filter_type
action find
entity Q6937772
relation P840
type Q56061
['Q6937772', 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q56061 . resource:Q6937772 property:P840 ?c }
Murder in the Private Car
action filter_type
action find
entity Murder in the Private Car
relation narrative location
type administrative territorial entity
['Murder in the Private Car', 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity . resource:Murder_in_the_Private_Car property:narrative_location ?c }
[]
administrative territorial entity
Q65
SYSTEM
Los Angeles
Q65
(Q6937772,P840,c(Q56061))
action filter_type
action find
entity Q6937772
relation P840
type Q56061
Murder in the Private Car is set in the [ANSWER]
['Q6937772', 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q56061 . resource:Q6937772 property:P840 ?c }
Los Angeles
Murder in the Private Car is set in the Los Angeles
Los Angeles
action filter_type
action find
entity Murder in the Private Car
relation narrative location
type administrative territorial entity
['Murder in the Private Car', 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity . resource:Murder_in_the_Private_Car property:narrative_location ?c }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q65
P6
Q502895
USER
Which person has that administrative territory as its head of government ?
(Q65,P6,c(Q502895))
action filter_type
action find
entity Q65
relation P6
type Q502895
['Q65', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q65 property:P6 ?q }
Los Angeles
action filter_type
action find
entity Los Angeles
relation head of government
type common name
['Los Angeles', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Los_Angeles property:head_of_government ?q }
[]
common name
Q5386557
SYSTEM
Eric Garcetti
Q5386557
(Q65,P6,c(Q502895))
action filter_type
action find
entity Q65
relation P6
type Q502895
[ANSWER] has that administrative territory as its head of government
['Q65', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q65 property:P6 ?q }
Eric Garcetti
Eric Garcetti has that administrative territory as its head of government
Eric Garcetti
action filter_type
action find
entity Los Angeles
relation head of government
type common name
['Los Angeles', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Los_Angeles property:head_of_government ?q }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q65
P47
Q515 Q486972
USER
How many cities or human settlements are bordered by Los Angeles ?
(Q65,P47,c(Q515)) (Q65,P47,c(Q486972))
action count
action union
action filter_type
action find
entity Q65
relation P47
type Q515
action filter_type
action find
entity Q65
relation P47
type Q486972
['Q65', 'P47', {'concept': 'Q515'}] ['Q65', 'P47', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { { resource:Q65 property:P47 ?c . ?c rdf:type ontology:Q515 } UNION { resource:Q65 property:P47 ?c . ?c rdf:type ontology:Q486972 } }
Los Angeles
action count
action union
action filter_type
action find
entity Los Angeles
relation shares border with
type city
action filter_type
action find
entity Los Angeles
relation shares border with
type human settlement
['Los Angeles', 'shares border with', {'concept': 'city'}] ['Los Angeles', 'shares border with', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { { resource:Los_Angeles property:shares_border_with ?c . ?c rdf:type ontology:city } UNION { resource:Los_Angeles property:shares_border_with ?c . ?c rdf:type ontology:human_settlement } }
[]
city human settlement
SYSTEM
8
Q1669280 Q2584592 Q1898611 Q690991 Q1898553 Q655926 Q485176 Q290356
(Q65,P47,c(Q515)) (Q65,P47,c(Q486972))
action count
action union
action filter_type
action find
entity Q65
relation P47
type Q515
action filter_type
action find
entity Q65
relation P47
type Q486972
[ANSWER]
['Q65', 'P47', {'concept': 'Q515'}] ['Q65', 'P47', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { { resource:Q65 property:P47 ?c . ?c rdf:type ontology:Q515 } UNION { resource:Q65 property:P47 ?c . ?c rdf:type ontology:Q486972 } }
West Athens Ladera Heights Westmont East Los Angeles Willowbrook West Carson Pasadena San Pedro
8
action count
action union
action filter_type
action find
entity Los Angeles
relation shares border with
type city
action filter_type
action find
entity Los Angeles
relation shares border with
type human settlement
['Los Angeles', 'shares border with', {'concept': 'city'}] ['Los Angeles', 'shares border with', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { { resource:Los_Angeles property:shares_border_with ?c . ?c rdf:type ontology:city } UNION { resource:Los_Angeles property:shares_border_with ?c . ?c rdf:type ontology:human_settlement } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q65
P138
Q2235308
USER
Which ship type has Los Angeles as its toponym ?
(c(Q2235308),P138,Q65)
action filter_type
action find_reverse
entity Q65
relation P138
type Q2235308
[{'concept': 'Q2235308'}, 'P138', 'Q65']
SELECT DISTINCT ?h WHERE { ?h property:P138 resource:Q65 . ?h rdf:type ontology:Q2235308 }
Los Angeles
action filter_type
action find_reverse
entity Los Angeles
relation named after
type ship type
[{'concept': 'ship type'}, 'named after', 'Los Angeles']
SELECT DISTINCT ?h WHERE { ?h property:named_after resource:Los_Angeles . ?h rdf:type ontology:ship_type }
[]
ship type
Q2166261
SYSTEM
USS Los Angeles
Q2166261
(c(Q2235308),P138,Q65)
action filter_type
action find_reverse
entity Q65
relation P138
type Q2235308
[ANSWER] has Los Angeles as its toponym
[{'concept': 'Q2235308'}, 'P138', 'Q65']
SELECT DISTINCT ?h WHERE { ?h property:P138 resource:Q65 . ?h rdf:type ontology:Q2235308 }
USS Los Angeles
USS Los Angeles has Los Angeles as its toponym
USS Los Angeles
action filter_type
action find_reverse
entity Los Angeles
relation named after
type ship type
[{'concept': 'ship type'}, 'named after', 'Los Angeles']
SELECT DISTINCT ?h WHERE { ?h property:named_after resource:Los_Angeles . ?h rdf:type ontology:ship_type }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q65
P190
Q515
USER
Which cities are the sister cities of Los Angeles ?
(Q65,P190,c(Q515))
action filter_type
action find
entity Q65
relation P190
type Q515
['Q65', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?t WHERE { resource:Q65 property:P190 ?t . ?t rdf:type ontology:Q515 }
Los Angeles
action filter_type
action find
entity Los Angeles
relation sister city
type city
['Los Angeles', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?t WHERE { resource:Los_Angeles property:sister_city ?t . ?t rdf:type ontology:city }
[]
city
Q1953 Q3616 Q16520
SYSTEM
Yerevan, Tehran, Busan
Q16520 Q3616 Q1953 Q1508
(Q65,P190,c(Q515))
action filter_type
action find
entity Q65
relation P190
type Q515
[ANSWERS] are the sister cities of Los Angeles
['Q65', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?t WHERE { resource:Q65 property:P190 ?t . ?t rdf:type ontology:Q515 }
Busan Tehran Yerevan Makati
Yerevan, Tehran and Busan are the sister cities of Los Angeles
Yerevan Tehran Busan
action filter_type
action find
entity Los Angeles
relation sister city
type city
['Los Angeles', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?t WHERE { resource:Los_Angeles property:sister_city ?t . ?t rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1953 Q3616 Q16520
P551
Q502895
USER
Which people live in Yerevan, Tehran and Busan ?
(c(Q502895),P551,Q1953) (c(Q502895),P551,Q3616) (c(Q502895),P551,Q16520)
action union
action filter_type
action find_reverse
entity Q1953
relation P551
type Q502895
action filter_type
action find_reverse
entity Q3616
relation P551
type Q502895
action filter_type
action find_reverse
entity Q16520
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q1953'] [{'concept': 'Q502895'}, 'P551', 'Q3616'] [{'concept': 'Q502895'}, 'P551', 'Q16520']
SELECT DISTINCT ?g WHERE { { ?g property:P551 resource:Q1953 . ?g rdf:type ontology:Q502895 } UNION { ?g property:P551 resource:Q3616 . ?g rdf:type ontology:Q502895 } }
Yerevan Tehran Busan
action union
action filter_type
action find_reverse
entity Yerevan
relation residence
type common name
action filter_type
action find_reverse
entity Tehran
relation residence
type common name
action filter_type
action find_reverse
entity Busan
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Yerevan'] [{'concept': 'common name'}, 'residence', 'Tehran'] [{'concept': 'common name'}, 'residence', 'Busan']
SELECT DISTINCT ?g WHERE { { ?g property:residence resource:Yerevan . ?g rdf:type ontology:common_name } UNION { ?g property:residence resource:Tehran . ?g rdf:type ontology:common_name } }
[]
common name
Q3646436 Q463194 Q154586
SYSTEM
Derenik Demirchian, Alexander Arutiunian, Levon Aronian
Q2634836 Q4064849 Q4530744 Q612803 Q4531651 Q723839 Q4074748 Q5645924 Q4419820 Q4074760 Q463194 Q313461 Q2383515 Q154586 Q3646436 Q4457124 Q4008359 Q4320045 Q7908666 Q2380073 Q4404367 Q3574863 Q13914146 Q18227912 Q101054 Q3895942 Q3318983 Q6987117 Q255233 Q4056514 Q5955892 Q196223
(c(Q502895),P551,Q1953) (c(Q502895),P551,Q3616) (c(Q502895),P551,Q16520)
action union
action filter_type
action find_reverse
entity Q1953
relation P551
type Q502895
action filter_type
action find_reverse
entity Q3616
relation P551
type Q502895
action filter_type
action find_reverse
entity Q16520
relation P551
type Q502895
[ANSWERS] live in Yerevan, Tehran and Busan
[{'concept': 'Q502895'}, 'P551', 'Q1953'] [{'concept': 'Q502895'}, 'P551', 'Q3616'] [{'concept': 'Q502895'}, 'P551', 'Q16520']
SELECT DISTINCT ?g WHERE { { ?g property:P551 resource:Q1953 . ?g rdf:type ontology:Q502895 } UNION { ?g property:P551 resource:Q3616 . ?g rdf:type ontology:Q502895 } }
Zori Balayan Levon Ananyan Edgar Elbakyan Serzh Sargsyan Gevorg Emin Gostan Zarian Arev Baghdasaryan Hamo Sahyan Hripsime Simonyan Edvard Baghdasaryan Alexander Arutiunian Khachatur Abovian Artashes Geghamyan Levon Aronian Derenik Demirchian Nikoghayos Tigranian Valter Poġosyan Nikolay Nikoghosyan Vahram Sahakian Yervand Zakharyan Rouslan Saghabalyan Zari Khoshkam Parinaz Izadyar Hamideh Abbasali Bahá'u'lláh Parinoush Saniee Mohammad-Reza Sharifinia Negar Javaherian Googoosh Georges Agabekov Elnaz Shakerdoust Kim Hye-su
Derenik Demirchian, Alexander Arutiunian and Levon Aronian live in Yerevan, Tehran and Busan
Derenik Demirchian Alexander Arutiunian Levon Aronian
action union
action filter_type
action find_reverse
entity Yerevan
relation residence
type common name
action filter_type
action find_reverse
entity Tehran
relation residence
type common name
action filter_type
action find_reverse
entity Busan
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Yerevan'] [{'concept': 'common name'}, 'residence', 'Tehran'] [{'concept': 'common name'}, 'residence', 'Busan']
SELECT DISTINCT ?g WHERE { { ?g property:residence resource:Yerevan . ?g rdf:type ontology:common_name } UNION { ?g property:residence resource:Tehran . ?g rdf:type ontology:common_name } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3616
P180
Q3305213
USER
Which painting expressess Tehran ?
(c(Q3305213),P180,Q3616)
action filter_type
action find_reverse
entity Q3616
relation P180
type Q3305213
[{'concept': 'Q3305213'}, 'P180', 'Q3616']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q3305213 . ?b property:P180 resource:Q3616 }
Tehran
action filter_type
action find_reverse
entity Tehran
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'Tehran']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:painting . ?b property:depicts resource:Tehran }
[]
painting
Q19917520
SYSTEM
In a Harem in Tehran
Q19917520
(c(Q3305213),P180,Q3616)
action filter_type
action find_reverse
entity Q3616
relation P180
type Q3305213
[ANSWER] expressess Tehran
[{'concept': 'Q3305213'}, 'P180', 'Q3616']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q3305213 . ?b property:P180 resource:Q3616 }
In a Harem in Tehran
In a Harem in Tehran expressess Tehran
In a Harem in Tehran
action filter_type
action find_reverse
entity Tehran
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'Tehran']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:painting . ?b property:depicts resource:Tehran }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3616
P1376
Q13417114
USER
Which noble families have that city as their capital ?
(Q19917520,P1376,c(Q13417114))
action filter_type
action find
entity Q3616
relation P1376
type Q13417114
['Q19917520', 'P1376', {'concept': 'Q13417114'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q13417114 . resource:Q3616 property:P1376 ?b }
Tehran
action filter_type
action find
entity Tehran
relation capital of
type noble family
['In a Harem in Tehran', 'capital of', {'concept': 'noble family'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:noble_family . resource:Tehran property:capital_of ?b }
[]
noble family
Q189326 Q207991
SYSTEM
Qajar dynasty, Pahlavi dynasty
Q189326 Q207991
(Q19917520,P1376,c(Q13417114))
action filter_type
action find
entity Q3616
relation P1376
type Q13417114
[ANSWERS] have that city as their capital
['Q19917520', 'P1376', {'concept': 'Q13417114'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q13417114 . resource:Q3616 property:P1376 ?b }
Qajar dynasty Pahlavi dynasty
Qajar dynasty and Pahlavi dynasty have that city as their capital
Qajar dynasty Pahlavi dynasty
action filter_type
action find
entity Tehran
relation capital of
type noble family
['In a Harem in Tehran', 'capital of', {'concept': 'noble family'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:noble_family . resource:Tehran property:capital_of ?b }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q189326 Q207991
P85
Q484692
USER
Which are the national anthems of those noble families ?
(Q189326,P85,c(Q484692)) (Q207991,P85,c(Q484692))
action filter_type
action find
entity prev_answer
relation P85
type Q484692
['Q189326', 'P85', {'concept': 'Q484692'}] ['Q207991', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q484692 . VALUES ( ?j ) { ( resource:Q189326 ) ( resource:Q207991 ) } . ?j property:P85 ?r }
Qajar dynasty Pahlavi dynasty
action filter_type
action find
entity prev_answer
relation anthem
type hymn
['Qajar dynasty', 'anthem', {'concept': 'hymn'}] ['Pahlavi dynasty', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:hymn . VALUES ( ?j ) { ( resource:Qajar_dynasty ) ( resource:Pahlavi_dynasty ) } . ?j property:anthem ?r }
[]
hymn
Q1072837 Q1334863
SYSTEM
First Iranian national anthem, Imperial Anthem of Iran
Q1072837 Q1334863
(Q189326,P85,c(Q484692)) (Q207991,P85,c(Q484692))
action filter_type
action find
entity prev_answer
relation P85
type Q484692
The national anthems of those noble families are the [ANSWERS]
['Q189326', 'P85', {'concept': 'Q484692'}] ['Q207991', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q484692 . VALUES ( ?j ) { ( resource:Q189326 ) ( resource:Q207991 ) } . ?j property:P85 ?r }
First Iranian national anthem Imperial Anthem of Iran
The national anthems of those noble families are the First Iranian national anthem and Imperial Anthem of Iran
First Iranian national anthem Imperial Anthem of Iran
action filter_type
action find
entity prev_answer
relation anthem
type hymn
['Qajar dynasty', 'anthem', {'concept': 'hymn'}] ['Pahlavi dynasty', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:hymn . VALUES ( ?j ) { ( resource:Qajar_dynasty ) ( resource:Pahlavi_dynasty ) } . ?j property:anthem ?r }
[]
Clarification
Simple Question|Single Entity|Indirect
Q189326
P53
Q502895
USER
Which people are from that noble family ?
(c(Q502895),P53,Q189326)
action filter_type
action find_reverse
entity Q189326
relation P53
type Q502895
[{'concept': 'Q502895'}, 'P53', 'Q189326']
SELECT DISTINCT ?e WHERE { ?e property:P53 resource:Q189326 . ?e rdf:type ontology:Q502895 }
Qajar dynasty
action filter_type
action find_reverse
entity Qajar dynasty
relation noble family
type common name
[{'concept': 'common name'}, 'noble family', 'Qajar dynasty']
SELECT DISTINCT ?e WHERE { ?e property:noble_family resource:Qajar_dynasty . ?e rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q189326
SYSTEM
Did you mean Qajar dynasty ?
Q1072837 Q1334863
(c(Q502895),P53,Q1072837) (c(Q502895),P53,Q1334863)
[ANSWER]
[{'concept': 'Q502895'}, 'P53', 'Q1072837'] [{'concept': 'Q502895'}, 'P53', 'Q1334863']
SELECT DISTINCT ?e WHERE { ?e property:P53 resource:Q189326 . ?e rdf:type ontology:Q502895 }
First Iranian national anthem Imperial Anthem of Iran
Did you mean Qajar dynasty ?
Qajar dynasty
[{'concept': 'common name'}, 'noble family', 'First Iranian national anthem'] [{'concept': 'common name'}, 'noble family', 'Imperial Anthem of Iran']
SELECT DISTINCT ?e WHERE { ?e property:noble_family resource:Qajar_dynasty . ?e rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P53,Q189326)
[{'concept': 'Q502895'}, 'P53', 'Q189326']
[{'concept': 'common name'}, 'noble family', 'Qajar dynasty']
[]
Q80226 Q317799 Q159416
SYSTEM
Abbas Mirza, Ahmad Shah Qajar, Naser al-Din Shah Qajar
Q4842853 Q80226 Q159416 Q317799 Q4725020 Q355603 Q2061781 Q6586902 Q2629460 Q324974 Q467021 Q6402560 Q175299 Q6406070 Q17423550 Q6892014 Q5644616 Q4308240 Q6734382 Q4739975
(c(Q502895),P53,Q189326)
action filter_type
action find_reverse
entity Q189326
relation P53
type Q502895
[ANSWERS] are from that noble family
[{'concept': 'Q502895'}, 'P53', 'Q189326']
SELECT DISTINCT ?e WHERE { ?e property:P53 resource:Q189326 . ?e rdf:type ontology:Q502895 }
Bahram Mirza Abbas Mirza Naser al-Din Shah Qajar Ahmad Shah Qajar Ali Mirza Qajar Mohammad Ali Shah Qajar Bahman Mirza Qajar Mozaffar Firouz Mohammad Hassan Mirza Mohammad Khan Qajar Mozaffar ad-Din Shah Qajar Khosrow Jahanbani Fat′h-Ali Shah Qajar Aliqoli Mirza Etezado-ol-Saltaneh Ebrahim Khan Mohammad Hassan Mirza II Hamid Mirza Morteza Qoli Khan Qajar Mahmoud Mirza Amanullah Jahanbani
Abbas Mirza, Ahmad Shah Qajar and Naser al-Din Shah Qajar are from that noble family
Abbas Mirza Ahmad Shah Qajar Naser al-Din Shah Qajar
action filter_type
action find_reverse
entity Qajar dynasty
relation noble family
type common name
[{'concept': 'common name'}, 'noble family', 'Qajar dynasty']
SELECT DISTINCT ?e WHERE { ?e property:noble_family resource:Qajar_dynasty . ?e rdf:type ontology:common_name }
[]