Simple Question (Direct)
Simple Question
Q5484990
P641
Q349
USER
What was the sport that Frank Allcock was a part of ?
(Q5484990,P641,c(Q349))
action filter_type
action find
entity Q5484990
relation P641
type Q349
['Q5484990', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q5484990 property:P641 ?q . ?q rdf:type ontology:Q349 }
Frank Allcock
action filter_type
action find
entity Frank Allcock
relation sport
type sport
['Frank Allcock', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Frank_Allcock property:sport ?q . ?q rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q5484990,P641,c(Q349))
action filter_type
action find
entity Q5484990
relation P641
type Q349
The sport that Frank Allcock was a part of was [ANSWER]
['Q5484990', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q5484990 property:P641 ?q . ?q rdf:type ontology:Q349 }
association football
The sport that Frank Allcock was a part of was association football
association football
action filter_type
action find
entity Frank Allcock
relation sport
type sport
['Frank Allcock', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Frank_Allcock property:sport ?q . ?q rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5484990
P20
Q56061
USER
Where did Frank Allcock expire ?
(Q5484990,P20,c(Q56061))
action filter_type
action find
entity Q5484990
relation P20
type Q56061
['Q5484990', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q5484990 property:P20 ?u . ?u rdf:type ontology:Q56061 }
Frank Allcock
action filter_type
action find
entity Frank Allcock
relation place of death
type administrative territorial entity
['Frank Allcock', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Frank_Allcock property:place_of_death ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q41262
SYSTEM
Nottingham
Q41262
(Q5484990,P20,c(Q56061))
action filter_type
action find
entity Q5484990
relation P20
type Q56061
Frank Allcock expired in [ANSWER]
['Q5484990', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q5484990 property:P20 ?u . ?u rdf:type ontology:Q56061 }
Nottingham
Frank Allcock expired in Nottingham
Nottingham
action filter_type
action find
entity Frank Allcock
relation place of death
type administrative territorial entity
['Frank Allcock', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Frank_Allcock property:place_of_death ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1314257
Q56061
USER
And how about Zsuzsa Szőnyi?
(Q1314257,P20,c(Q56061))
action filter_type
action find
entity Q1314257
relation P20
type Q56061
['Q1314257', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q1314257 property:P20 ?m . ?m rdf:type ontology:Q56061 }
Zsuzsa Szőnyi
action filter_type
action find
entity Zsuzsa Szőnyi
relation place of death
type administrative territorial entity
['Zsuzsa Szőnyi', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Zsuzsa_Szőnyi property:place_of_death ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1781
SYSTEM
Budapest
Q1781
(Q1314257,P20,c(Q56061))
action filter_type
action find
entity Q1314257
relation P20
type Q56061
[ANSWER]
['Q1314257', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q1314257 property:P20 ?m . ?m rdf:type ontology:Q56061 }
Budapest
Budapest
action filter_type
action find
entity Zsuzsa Szőnyi
relation place of death
type administrative territorial entity
['Zsuzsa Szőnyi', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Zsuzsa_Szőnyi property:place_of_death ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1781
P17
Q3024240 Q5589178
USER
How many former countries and regimes are Budapest located in ?
(Q1781,P17,c(Q3024240)) (Q1781,P17,c(Q5589178))
action count
action union
action filter_type
action find
entity Q1781
relation P17
type Q3024240
action filter_type
action find
entity Q1781
relation P17
type Q5589178
['Q1781', 'P17', {'concept': 'Q3024240'}] ['Q1781', 'P17', {'concept': 'Q5589178'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { { resource:Q1781 property:P17 ?x . ?x rdf:type ontology:Q3024240 } UNION { resource:Q1781 property:P17 ?x . ?x rdf:type ontology:Q5589178 } }
Budapest
action count
action union
action filter_type
action find
entity Budapest
relation country
type former country
action filter_type
action find
entity Budapest
relation country
type regime
['Budapest', 'country', {'concept': 'former country'}] ['Budapest', 'country', {'concept': 'regime'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { { resource:Budapest property:country ?x . ?x rdf:type ontology:former_country } UNION { resource:Budapest property:country ?x . ?x rdf:type ontology:regime } }
[]
former country regime
SYSTEM
1 former countries and 1 regimes
Q516160 Q28513
(Q1781,P17,c(Q3024240)) (Q1781,P17,c(Q5589178))
action count
action union
action filter_type
action find
entity Q1781
relation P17
type Q3024240
action filter_type
action find
entity Q1781
relation P17
type Q5589178
[ANSWER]
['Q1781', 'P17', {'concept': 'Q3024240'}] ['Q1781', 'P17', {'concept': 'Q5589178'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { { resource:Q1781 property:P17 ?x . ?x rdf:type ontology:Q3024240 } UNION { resource:Q1781 property:P17 ?x . ?x rdf:type ontology:Q5589178 } }
First Hungarian Republic Austria-Hungary
1 former countries and 1 regimes
action count
action union
action filter_type
action find
entity Budapest
relation country
type former country
action filter_type
action find
entity Budapest
relation country
type regime
['Budapest', 'country', {'concept': 'former country'}] ['Budapest', 'country', {'concept': 'regime'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { { resource:Budapest property:country ?x . ?x rdf:type ontology:former_country } UNION { resource:Budapest property:country ?x . ?x rdf:type ontology:regime } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1781
P17
Q7275
USER
Which states are Budapest present in ?
(Q1781,P17,c(Q7275))
action filter_type
action find
entity Q1781
relation P17
type Q7275
['Q1781', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q7275 . resource:Q1781 property:P17 ?s }
Budapest
action filter_type
action find
entity Budapest
relation country
type state
['Budapest', 'country', {'concept': 'state'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:state . resource:Budapest property:country ?s }
[]
state
Q600018 Q131964 Q243652
SYSTEM
Kingdom of Hungary, Austrian Empire, Hungarian Soviet Republic
Q600018 Q131964 Q243652
(Q1781,P17,c(Q7275))
action filter_type
action find
entity Q1781
relation P17
type Q7275
Budapest are the [ANSWERS]
['Q1781', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q7275 . resource:Q1781 property:P17 ?s }
Kingdom of Hungary Austrian Empire Hungarian Soviet Republic
Budapest are the Kingdom of Hungary, Austrian Empire and Hungarian Soviet Republic
Kingdom of Hungary Austrian Empire Hungarian Soviet Republic
action filter_type
action find
entity Budapest
relation country
type state
['Budapest', 'country', {'concept': 'state'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:state . resource:Budapest property:country ?s }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q600018 Q131964 Q243652
P17
Q56061
USER
Which administrative territories are situated in those states ?
(c(Q56061),P17,Q600018) (c(Q56061),P17,Q131964) (c(Q56061),P17,Q243652)
action filter_type
action find_reverse
entity prev_answer
relation P17
type Q56061
[{'concept': 'Q56061'}, 'P17', 'Q600018'] [{'concept': 'Q56061'}, 'P17', 'Q131964'] [{'concept': 'Q56061'}, 'P17', 'Q243652']
SELECT DISTINCT ?f WHERE { VALUES ( ?t ) { ( resource:Q600018 ) ( resource:Q131964 ) ( resource:Q243652 ) } . ?f rdf:type ontology:Q56061 . ?f property:P17 ?t }
Kingdom of Hungary Austrian Empire Hungarian Soviet Republic
action filter_type
action find_reverse
entity prev_answer
relation country
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'country', 'Kingdom of Hungary'] [{'concept': 'administrative territorial entity'}, 'country', 'Austrian Empire'] [{'concept': 'administrative territorial entity'}, 'country', 'Hungarian Soviet Republic']
SELECT DISTINCT ?f WHERE { VALUES ( ?t ) { ( resource:Kingdom_of_Hungary ) ( resource:Austrian_Empire ) ( resource:Hungarian_Soviet_Republic ) } . ?f rdf:type ontology:administrative_territorial_entity . ?f property:country ?t }
[]
administrative territorial entity
Q1085 Q1781 Q1781
SYSTEM
Budapest for 2nd, 3rd, Prague for 1st
Q533139 Q1781 Q715296 Q1021 Q1922299 Q598 Q724633 Q4656 Q1085 Q641 Q36036 Q156593 Q628 Q158821 Q617 Q617 Q533139 Q650252 Q4367267 Q546 Q1741 Q867468 Q1780 Q1781 Q737291 Q616877 Q3126740 Q156726 Q367211 Q1781
(c(Q56061),P17,Q600018) (c(Q56061),P17,Q131964) (c(Q56061),P17,Q243652)
action filter_type
action find_reverse
entity prev_answer
relation P17
type Q56061
[ANSWERS]
[{'concept': 'Q56061'}, 'P17', 'Q600018'] [{'concept': 'Q56061'}, 'P17', 'Q131964'] [{'concept': 'Q56061'}, 'P17', 'Q243652']
SELECT DISTINCT ?f WHERE { VALUES ( ?t ) { ( resource:Q600018 ) ( resource:Q131964 ) ( resource:Q243652 ) } . ?f rdf:type ontology:Q56061 . ?f property:P17 ?t }
Cristeștii Ciceului Budapest Șiria Kranj Zawichost Rzeszów Istrău Pula Prague Venice Lviv Sambir Bergamo Drohobych Padua Padua Cristeștii Ciceului Prilipeț Pidhaitsi Trieste Vienna Ciprian Porumbescu Bratislava Budapest Cenadu Vechi Louny Umetić Ivano-Frankivsk Smiljan Budapest
Prague, Budapest and Budapest are situated in those states
Prague Budapest Budapest
action filter_type
action find_reverse
entity prev_answer
relation country
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'country', 'Kingdom of Hungary'] [{'concept': 'administrative territorial entity'}, 'country', 'Austrian Empire'] [{'concept': 'administrative territorial entity'}, 'country', 'Hungarian Soviet Republic']
SELECT DISTINCT ?f WHERE { VALUES ( ?t ) { ( resource:Kingdom_of_Hungary ) ( resource:Austrian_Empire ) ( resource:Hungarian_Soviet_Republic ) } . ?f rdf:type ontology:administrative_territorial_entity . ?f property:country ?t }
[]
Clarification
Simple Question|Single Entity|Indirect
Q600018
P36
Q56061
USER
What is the capital of that state ?
(Q600018,P36,c(Q56061))
action filter_type
action find
entity Q600018
relation P36
type Q56061
['Q600018', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q600018 property:P36 ?k . ?k rdf:type ontology:Q56061 }
Kingdom of Hungary
action filter_type
action find
entity Kingdom of Hungary
relation capital
type administrative territorial entity
['Kingdom of Hungary', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Kingdom_of_Hungary property:capital ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q600018
SYSTEM
Did you mean Kingdom of Hungary ?
Q1085 Q1781 Q1781
(Q1085,P36,c(Q56061)) (Q1781,P36,c(Q56061)) (Q1781,P36,c(Q56061))
[ANSWER]
['Q1085', 'P36', {'concept': 'Q56061'}] ['Q1781', 'P36', {'concept': 'Q56061'}] ['Q1781', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q600018 property:P36 ?k . ?k rdf:type ontology:Q56061 }
Prague Budapest Budapest
Did you mean Kingdom of Hungary ?
Kingdom of Hungary
['Prague', 'capital', {'concept': 'administrative territorial entity'}] ['Budapest', 'capital', {'concept': 'administrative territorial entity'}] ['Budapest', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Kingdom_of_Hungary property:capital ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q600018,P36,c(Q56061))
['Q600018', 'P36', {'concept': 'Q56061'}]
['Kingdom of Hungary', 'capital', {'concept': 'administrative territorial entity'}]
[]
Q1781
SYSTEM
Budapest
Q1781
(Q600018,P36,c(Q56061))
action filter_type
action find
entity Q600018
relation P36
type Q56061
The capital of that state is [ANSWER]
['Q600018', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q600018 property:P36 ?k . ?k rdf:type ontology:Q56061 }
Budapest
The capital of that state is Budapest
Budapest
action filter_type
action find
entity Kingdom of Hungary
relation capital
type administrative territorial entity
['Kingdom of Hungary', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Kingdom_of_Hungary property:capital ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]