Simple Question (Direct)
Simple Question
Q1986126
P106
Q28640
USER
Which profession is the profession of Nicola Kirsch ?
(Q1986126,P106,c(Q28640))
action filter_type
action find
entity Q1986126
relation P106
type Q28640
['Q1986126', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?x WHERE { resource:Q1986126 property:P106 ?x . ?x rdf:type ontology:Q28640 }
Nicola Kirsch
action filter_type
action find
entity Nicola Kirsch
relation occupation
type profession
['Nicola Kirsch', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?x WHERE { resource:Nicola_Kirsch property:occupation ?x . ?x rdf:type ontology:profession }
[]
profession
Q10800557
SYSTEM
film actor
Q10800557
(Q1986126,P106,c(Q28640))
action filter_type
action find
entity Q1986126
relation P106
type Q28640
The [ANSWER] is the profession of Nicola Kirsch
['Q1986126', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?x WHERE { resource:Q1986126 property:P106 ?x . ?x rdf:type ontology:Q28640 }
film actor
The film actor is the profession of Nicola Kirsch
film actor
action filter_type
action find
entity Nicola Kirsch
relation occupation
type profession
['Nicola Kirsch', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?x WHERE { resource:Nicola_Kirsch property:occupation ?x . ?x rdf:type ontology:profession }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1986126
P937
Q56061
USER
Which is the work location of Nicola Kirsch ?
(Q1986126,P937,c(Q56061))
action filter_type
action find
entity Q1986126
relation P937
type Q56061
['Q1986126', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q1986126 property:P937 ?j . ?j rdf:type ontology:Q56061 }
Nicola Kirsch
action filter_type
action find
entity Nicola Kirsch
relation work location
type administrative territorial entity
['Nicola Kirsch', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Nicola_Kirsch property:work_location ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q1986126,P937,c(Q56061))
action filter_type
action find
entity Q1986126
relation P937
type Q56061
[ANSWER] is the work location of Nicola Kirsch
['Q1986126', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q1986126 property:P937 ?j . ?j rdf:type ontology:Q56061 }
Berlin
Berlin is the work location of Nicola Kirsch
Berlin
action filter_type
action find
entity Nicola Kirsch
relation work location
type administrative territorial entity
['Nicola Kirsch', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Nicola_Kirsch property:work_location ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1986126
P19
Q515
USER
Which city was that person born at ?
(Q64,P19,c(Q515))
action filter_type
action find
entity Q1986126
relation P19
type Q515
['Q64', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?o WHERE { resource:Q1986126 property:P19 ?o . ?o rdf:type ontology:Q515 }
Nicola Kirsch
action filter_type
action find
entity Nicola Kirsch
relation place of birth
type city
['Berlin', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?o WHERE { resource:Nicola_Kirsch property:place_of_birth ?o . ?o rdf:type ontology:city }
[]
city
Q2910
SYSTEM
Ludwigshafen
Q2910
(Q64,P19,c(Q515))
action filter_type
action find
entity Q1986126
relation P19
type Q515
That person was born in [ANSWER]
['Q64', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?o WHERE { resource:Q1986126 property:P19 ?o . ?o rdf:type ontology:Q515 }
Ludwigshafen
That person was born in Ludwigshafen
Ludwigshafen
action filter_type
action find
entity Nicola Kirsch
relation place of birth
type city
['Berlin', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?o WHERE { resource:Nicola_Kirsch property:place_of_birth ?o . ?o rdf:type ontology:city }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q6108106 Q1986126
P19
Q515
USER
Or Ricardo Cruzat?
OR((Q1986126,P19,c(Q515)), (Q6108106,P19,c(Q515)))
action filter_type
action union
action find
entity Q1986126
relation P19
action find
entity Q6108106
relation P19
type Q515
{'OR': [['Q1986126', 'P19', {'concept': 'Q515'}], ['Q6108106', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q6108106 property:P19 ?h } UNION { resource:Q1986126 property:P19 ?h } } . ?h rdf:type ontology:Q515 }
Ricardo Cruzat Nicola Kirsch
action filter_type
action union
action find
entity Nicola Kirsch
relation place of birth
action find
entity Ricardo Cruzat
relation place of birth
type city
{'OR': [['Nicola Kirsch', 'place of birth', {'concept': 'city'}], ['Ricardo Cruzat', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Ricardo_Cruzat property:place_of_birth ?h } UNION { resource:Nicola_Kirsch property:place_of_birth ?h } } . ?h rdf:type ontology:city }
[]
city
Q2910 Q2887
SYSTEM
Ludwigshafen, Santiago
Q2910 Q2887
OR((Q1986126,P19,c(Q515)), (Q6108106,P19,c(Q515)))
action filter_type
action union
action find
entity Q1986126
relation P19
action find
entity Q6108106
relation P19
type Q515
[ANSWERS]
{'OR': [['Q1986126', 'P19', {'concept': 'Q515'}], ['Q6108106', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q6108106 property:P19 ?h } UNION { resource:Q1986126 property:P19 ?h } } . ?h rdf:type ontology:Q515 }
Ludwigshafen Santiago
Ludwigshafen Santiago
action filter_type
action union
action find
entity Nicola Kirsch
relation place of birth
action find
entity Ricardo Cruzat
relation place of birth
type city
{'OR': [['Nicola Kirsch', 'place of birth', {'concept': 'city'}], ['Ricardo Cruzat', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Ricardo_Cruzat property:place_of_birth ?h } UNION { resource:Nicola_Kirsch property:place_of_birth ?h } } . ?h rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q2910 Q2887
P190
Q56061
USER
Which administrative territories are sister towns of Ludwigshafen and Santiago ?
(Q2910,P190,c(Q56061)) (Q2887,P190,c(Q56061))
action union
action filter_type
action find
entity Q2910
relation P190
type Q56061
action filter_type
action find
entity Q2887
relation P190
type Q56061
['Q2910', 'P190', {'concept': 'Q56061'}] ['Q2887', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { { resource:Q2887 property:P190 ?b . ?b rdf:type ontology:Q56061 } UNION { resource:Q2910 property:P190 ?b . ?b rdf:type ontology:Q56061 } }
Ludwigshafen Santiago
action union
action filter_type
action find
entity Ludwigshafen
relation sister city
type administrative territorial entity
action filter_type
action find
entity Santiago
relation sister city
type administrative territorial entity
['Ludwigshafen', 'sister city', {'concept': 'administrative territorial entity'}] ['Santiago', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { resource:Santiago property:sister_city ?b . ?b rdf:type ontology:administrative_territorial_entity } UNION { resource:Ludwigshafen property:sister_city ?b . ?b rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q2807 Q1524 Q956
SYSTEM
Madrid, Athens, Beijing
Q12892 Q93338 Q3828 Q179833 Q3070 Q685509 Q34820 Q1524 Q1489 Q43509 Q174 Q2807 Q956 Q241767 Q3640 Q1491
(Q2910,P190,c(Q56061)) (Q2887,P190,c(Q56061))
action union
action filter_type
action find
entity Q2910
relation P190
type Q56061
action filter_type
action find
entity Q2887
relation P190
type Q56061
[ANSWERS] are sister towns of Ludwigshafen and Santiago
['Q2910', 'P190', {'concept': 'Q56061'}] ['Q2887', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { { resource:Q2887 property:P190 ?b . ?b rdf:type ontology:Q56061 } UNION { resource:Q2910 property:P190 ?b . ?b rdf:type ontology:Q56061 } }
Antwerp Gaziantep Dessau-Roßlau Sumqayit San José Santiago de Veraguas Santo Domingo Athens Mexico City Guayaquil São Paulo Madrid Beijing Plasencia Ankara La Paz
Madrid, Athens and Beijing are sister towns of Ludwigshafen and Santiago
Madrid Athens Beijing
action union
action filter_type
action find
entity Ludwigshafen
relation sister city
type administrative territorial entity
action filter_type
action find
entity Santiago
relation sister city
type administrative territorial entity
['Ludwigshafen', 'sister city', {'concept': 'administrative territorial entity'}] ['Santiago', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { resource:Santiago property:sister_city ?b . ?b rdf:type ontology:administrative_territorial_entity } UNION { resource:Ludwigshafen property:sister_city ?b . ?b rdf:type ontology:administrative_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q956
P276
Q1190554
USER
What are situated at that administrative territory ?
(c(Q1190554),P276,Q956)
action filter_type
action find_reverse
entity Q956
relation P276
type Q1190554
[{'concept': 'Q1190554'}, 'P276', 'Q956']
SELECT DISTINCT ?p WHERE { ?p property:P276 resource:Q956 . ?p rdf:type ontology:Q1190554 }
Beijing
action filter_type
action find_reverse
entity Beijing
relation location
type event
[{'concept': 'event'}, 'location', 'Beijing']
SELECT DISTINCT ?p WHERE { ?p property:location resource:Beijing . ?p rdf:type ontology:event }
[]
event
Clarification for simple ques.
Q956
SYSTEM
Did you mean Beijing ?
Q2807 Q1524 Q956
(c(Q1190554),P276,Q2807) (c(Q1190554),P276,Q1524) (c(Q1190554),P276,Q956)
[ANSWER]
[{'concept': 'Q1190554'}, 'P276', 'Q2807'] [{'concept': 'Q1190554'}, 'P276', 'Q1524'] [{'concept': 'Q1190554'}, 'P276', 'Q956']
SELECT DISTINCT ?p WHERE { ?p property:P276 resource:Q956 . ?p rdf:type ontology:Q1190554 }
Madrid Athens Beijing
Did you mean Beijing ?
Beijing
[{'concept': 'event'}, 'location', 'Madrid'] [{'concept': 'event'}, 'location', 'Athens'] [{'concept': 'event'}, 'location', 'Beijing']
SELECT DISTINCT ?p WHERE { ?p property:location resource:Beijing . ?p rdf:type ontology:event }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q1190554),P276,Q956)
[{'concept': 'Q1190554'}, 'P276', 'Q956']
[{'concept': 'event'}, 'location', 'Beijing']
[]
Q4871081 Q954923 Q219230
SYSTEM
Battle of Gaoliang River, Battle of Zhongdu, Marco Polo Bridge Incident
Q4871081 Q954923 Q219230
(c(Q1190554),P276,Q956)
action filter_type
action find_reverse
entity Q956
relation P276
type Q1190554
[ANSWERS] are situated at that administrative territory
[{'concept': 'Q1190554'}, 'P276', 'Q956']
SELECT DISTINCT ?p WHERE { ?p property:P276 resource:Q956 . ?p rdf:type ontology:Q1190554 }
Battle of Gaoliang River Battle of Zhongdu Marco Polo Bridge Incident
Battle of Gaoliang River, Battle of Zhongdu and Marco Polo Bridge Incident are situated at that administrative territory
Battle of Gaoliang River Battle of Zhongdu Marco Polo Bridge Incident
action filter_type
action find_reverse
entity Beijing
relation location
type event
[{'concept': 'event'}, 'location', 'Beijing']
SELECT DISTINCT ?p WHERE { ?p property:location resource:Beijing . ?p rdf:type ontology:event }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q4871081 Q954923 Q219230
P276
Q56061
USER
Which administrative territories are the locations of those events ?
(Q4871081,P276,c(Q56061)) (Q954923,P276,c(Q56061)) (Q219230,P276,c(Q56061))
action filter_type
action find
entity prev_answer
relation P276
type Q56061
['Q4871081', 'P276', {'concept': 'Q56061'}] ['Q954923', 'P276', {'concept': 'Q56061'}] ['Q219230', 'P276', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . ?q property:P276 ?s . VALUES ( ?q ) { ( resource:Q4871081 ) ( resource:Q954923 ) ( resource:Q219230 ) } }
Battle of Gaoliang River Battle of Zhongdu Marco Polo Bridge Incident
action filter_type
action find
entity prev_answer
relation location
type administrative territorial entity
['Battle of Gaoliang River', 'location', {'concept': 'administrative territorial entity'}] ['Battle of Zhongdu', 'location', {'concept': 'administrative territorial entity'}] ['Marco Polo Bridge Incident', 'location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . ?q property:location ?s . VALUES ( ?q ) { ( resource:Battle_of_Gaoliang_River ) ( resource:Battle_of_Zhongdu ) ( resource:Marco_Polo_Bridge_Incident ) } }
[]
administrative territorial entity
Q956 Q956 Q956
SYSTEM
Beijing
Q956 Q956 Q956
(Q4871081,P276,c(Q56061)) (Q954923,P276,c(Q56061)) (Q219230,P276,c(Q56061))
action filter_type
action find
entity prev_answer
relation P276
type Q56061
[ANSWER], [ANSWER] and [ANSWER] are the locations of those events
['Q4871081', 'P276', {'concept': 'Q56061'}] ['Q954923', 'P276', {'concept': 'Q56061'}] ['Q219230', 'P276', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . ?q property:P276 ?s . VALUES ( ?q ) { ( resource:Q4871081 ) ( resource:Q954923 ) ( resource:Q219230 ) } }
Beijing Beijing Beijing
Beijing, Beijing and Beijing are the locations of those events
Beijing Beijing Beijing
action filter_type
action find
entity prev_answer
relation location
type administrative territorial entity
['Battle of Gaoliang River', 'location', {'concept': 'administrative territorial entity'}] ['Battle of Zhongdu', 'location', {'concept': 'administrative territorial entity'}] ['Marco Polo Bridge Incident', 'location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . ?q property:location ?s . VALUES ( ?q ) { ( resource:Battle_of_Gaoliang_River ) ( resource:Battle_of_Zhongdu ) ( resource:Marco_Polo_Bridge_Incident ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q956
P291
Q21114848
USER
Which magazine genre has Beijing as its release location ?
(c(Q21114848),P291,Q956)
action filter_type
action find_reverse
entity Q956
relation P291
type Q21114848
[{'concept': 'Q21114848'}, 'P291', 'Q956']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q21114848 . ?x property:P291 resource:Q956 }
Beijing
action filter_type
action find_reverse
entity Beijing
relation place of publication
type magazine genre
[{'concept': 'magazine genre'}, 'place of publication', 'Beijing']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:magazine_genre . ?x property:place_of_publication resource:Beijing }
[]
magazine genre
Q15699400
SYSTEM
Acta Scientia Sinica
Q15699400
(c(Q21114848),P291,Q956)
action filter_type
action find_reverse
entity Q956
relation P291
type Q21114848
[ANSWER] has Beijing as its release location
[{'concept': 'Q21114848'}, 'P291', 'Q956']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q21114848 . ?x property:P291 resource:Q956 }
Acta Scientia Sinica
Acta Scientia Sinica has Beijing as its release location
Acta Scientia Sinica
action filter_type
action find_reverse
entity Beijing
relation place of publication
type magazine genre
[{'concept': 'magazine genre'}, 'place of publication', 'Beijing']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:magazine_genre . ?x property:place_of_publication resource:Beijing }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q956
P931
Q62447
USER
Which city does Beijing serve ?
(c(Q62447),P931,Q956)
action filter_type
action find_reverse
entity Q956
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q956']
SELECT DISTINCT ?o WHERE { ?o property:P931 resource:Q956 . ?o rdf:type ontology:Q62447 }
Beijing
action filter_type
action find_reverse
entity Beijing
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Beijing']
SELECT DISTINCT ?o WHERE { ?o property:place_served_by_airport resource:Beijing . ?o rdf:type ontology:aerodrome }
[]
aerodrome
Q1200842
SYSTEM
Beijing Nanyuan Airport
Q1200842
(c(Q62447),P931,Q956)
action filter_type
action find_reverse
entity Q956
relation P931
type Q62447
Beijing serves [ANSWER]
[{'concept': 'Q62447'}, 'P931', 'Q956']
SELECT DISTINCT ?o WHERE { ?o property:P931 resource:Q956 . ?o rdf:type ontology:Q62447 }
Beijing Nanyuan Airport
Beijing serves Beijing Nanyuan Airport
Beijing Nanyuan Airport
action filter_type
action find_reverse
entity Beijing
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Beijing']
SELECT DISTINCT ?o WHERE { ?o property:place_served_by_airport resource:Beijing . ?o rdf:type ontology:aerodrome }
[]