Simple Question (Direct)
Simple Question
Q556196
P641
Q349
USER
What did János Aknai participate in ?
(Q556196,P641,c(Q349))
action filter_type
action find
entity Q556196
relation P641
type Q349
['Q556196', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q556196 property:P641 ?f . ?f rdf:type ontology:Q349 }
János Aknai
action filter_type
action find
entity János Aknai
relation sport
type sport
['János Aknai', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:János_Aknai property:sport ?f . ?f rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q556196,P641,c(Q349))
action filter_type
action find
entity Q556196
relation P641
type Q349
János Aknai participated in [ANSWER]
['Q556196', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q556196 property:P641 ?f . ?f rdf:type ontology:Q349 }
association football
János Aknai participated in association football
association football
action filter_type
action find
entity János Aknai
relation sport
type sport
['János Aknai', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:János_Aknai property:sport ?f . ?f rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q556196
P19
Q56061
USER
Where was that person born ?
(Q2736,P19,c(Q56061))
action filter_type
action find
entity Q556196
relation P19
type Q56061
['Q2736', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q556196 property:P19 ?i . ?i rdf:type ontology:Q56061 }
János Aknai
action filter_type
action find
entity János Aknai
relation place of birth
type administrative territorial entity
['association football', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:János_Aknai property:place_of_birth ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1781
SYSTEM
Budapest
Q1781
(Q2736,P19,c(Q56061))
action filter_type
action find
entity Q556196
relation P19
type Q56061
That person was born in [ANSWER]
['Q2736', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q556196 property:P19 ?i . ?i rdf:type ontology:Q56061 }
Budapest
That person was born in Budapest
Budapest
action filter_type
action find
entity János Aknai
relation place of birth
type administrative territorial entity
['association football', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:János_Aknai property:place_of_birth ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P915
Q15416 Q838948
USER
How many television programs or works of art were filmed at that administrative territory ?
(c(Q15416),P915,Q1781) (c(Q838948),P915,Q1781) (c(Q15416),P915,Q1781) (c(Q838948),P915,Q1781)
action count
action union
action filter_type
action find_reverse
entity Q1781
relation P915
type Q15416
action filter_type
action find_reverse
entity Q1781
relation P915
type Q838948
[{'concept': 'Q15416'}, 'P915', 'Q1781'] [{'concept': 'Q838948'}, 'P915', 'Q1781'] [{'concept': 'Q15416'}, 'P915', 'Q1781'] [{'concept': 'Q838948'}, 'P915', 'Q1781']
SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { { ?u rdf:type ontology:Q838948 . ?u property:P915 resource:Q1781 } UNION { ?u property:P915 resource:Q1781 . ?u rdf:type ontology:Q15416 } }
action count
action union
action filter_type
action find_reverse
entity Budapest
relation filming location
type television program
action filter_type
action find_reverse
entity Budapest
relation filming location
type work of art
[{'concept': 'television program'}, 'filming location', 'Budapest'] [{'concept': 'work of art'}, 'filming location', 'Budapest'] [{'concept': 'television program'}, 'filming location', 'Budapest'] [{'concept': 'work of art'}, 'filming location', 'Budapest']
SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { { ?u rdf:type ontology:work_of_art . ?u property:filming_location resource:Budapest } UNION { ?u property:filming_location resource:Budapest . ?u rdf:type ontology:television_program } }
[]
television program work of art
SYSTEM
61
Q235742 Q1168000 Q1087225 Q651196 Q544664 Q18192306 Q164804 Q152456 Q628154 Q2816898 Q1427849 Q681962 Q19007192 Q3527366 Q819196 Q451171 Q1420921 Q646025 Q482377 Q1749617 Q1306837 Q7733182 Q165161 Q5352532 Q559664 Q81145 Q505325 Q240894 Q2058835 Q19816400 Q165297 Q637021 Q18547944 Q514293 Q2601102 Q696122 Q3274701 Q378754 Q1073297 Q6956300 Q17087335 Q239296 Q1029529 Q173804 Q245271 Q1347019 Q815550 Q2447613 Q21409357 Q6166723 Q260008 Q518127 Q32235 Q72276 Q772451 Q1049139 Q16389838 Q1130532 Q550248 Q157556 Q845905
(c(Q15416),P915,Q1781) (c(Q838948),P915,Q1781) (c(Q15416),P915,Q1781) (c(Q838948),P915,Q1781)
action count
action union
action filter_type
action find_reverse
entity Q1781
relation P915
type Q15416
action filter_type
action find_reverse
entity Q1781
relation P915
type Q838948
[ANSWER]
[{'concept': 'Q15416'}, 'P915', 'Q1781'] [{'concept': 'Q838948'}, 'P915', 'Q1781'] [{'concept': 'Q15416'}, 'P915', 'Q1781'] [{'concept': 'Q838948'}, 'P915', 'Q1781']
SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { { ?u rdf:type ontology:Q838948 . ?u property:P915 resource:Q1781 } UNION { ?u property:P915 resource:Q1781 . ?u rdf:type ontology:Q15416 } }
The Raven The Secret of Moonacre Taxidermia Hellboy II: The Golden Army Bel Ami Inferno Underworld Munich Mission: Impossible – Ghost Protocol 47 Ronin Music Box Tinker Tailor Soldier Spy The Childhood of a Leader Therese Mortal Kombat In the Beginning Mary, Mother of Jesus Underworld: Evolution An American Rhapsody Perlasca, un Eroe Italiano The Debt The Fall 100 Feet El ángel de Budapest Never Talk to Strangers The Eagle The Phantom of the Opera: The Motion Picture Jakob the Liar Dracula 3D Son of Saul 8mm 2 The Golden Compass The Martian Red Heat Good Escape to Victory Mack the Knife The Church Kontroll N Is a Number: A Portrait of Paul Erdős Wer Eragon Amusement Sunshine Evita Copying Beethoven Transporter 3 Terry Pratchett's Going Postal Aranyélet Extinction The Hunchback Hudson Hawk Stalin A Good Day to Die Hard I Spy Spy Game Spy The Rite Monte Carlo The Boy in the Striped Pyjamas Sniper 2
61
action count
action union
action filter_type
action find_reverse
entity Budapest
relation filming location
type television program
action filter_type
action find_reverse
entity Budapest
relation filming location
type work of art
[{'concept': 'television program'}, 'filming location', 'Budapest'] [{'concept': 'work of art'}, 'filming location', 'Budapest'] [{'concept': 'television program'}, 'filming location', 'Budapest'] [{'concept': 'work of art'}, 'filming location', 'Budapest']
SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { { ?u rdf:type ontology:work_of_art . ?u property:filming_location resource:Budapest } UNION { ?u property:filming_location resource:Budapest . ?u rdf:type ontology:television_program } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1781
P47
Q515
USER
Who share the border with Budapest ?
(Q1781,P47,c(Q515))
action filter_type
action find
entity Q1781
relation P47
type Q515
['Q1781', 'P47', {'concept': 'Q515'}]
SELECT DISTINCT ?a WHERE { resource:Q1781 property:P47 ?a . ?a rdf:type ontology:Q515 }
Budapest
action filter_type
action find
entity Budapest
relation shares border with
type city
['Budapest', 'shares border with', {'concept': 'city'}]
SELECT DISTINCT ?a WHERE { resource:Budapest property:shares_border_with ?a . ?a rdf:type ontology:city }
[]
city
Q193050 Q645567 Q740853
SYSTEM
Érd, Törökbálint, Szigetszentmiklós
Q842908 Q222964 Q283023 Q193050 Q755691 Q512073 Q645567 Q547479 Q36063 Q854933 Q740853 Q830652
(Q1781,P47,c(Q515))
action filter_type
action find
entity Q1781
relation P47
type Q515
[ANSWERS] share the border with Budapest
['Q1781', 'P47', {'concept': 'Q515'}]
SELECT DISTINCT ?a WHERE { resource:Q1781 property:P47 ?a . ?a rdf:type ontology:Q515 }
Gyál Pécel Maglód Érd Budaörs Kistarcsa Törökbálint Dunakeszi Vecsés Dunaharaszti Szigetszentmiklós Fót
Érd, Törökbálint and Szigetszentmiklós share the border with Budapest
Érd Törökbálint Szigetszentmiklós
action filter_type
action find
entity Budapest
relation shares border with
type city
['Budapest', 'shares border with', {'concept': 'city'}]
SELECT DISTINCT ?a WHERE { resource:Budapest property:shares_border_with ?a . ?a rdf:type ontology:city }
[]
Clarification
Simple Question|Single Entity|Indirect
Q193050
P36
Q1162835
USER
Which district of Hungary consists of that city as its capital ?
(c(Q1162835),P36,Q193050)
action filter_type
action find_reverse
entity Q193050
relation P36
type Q1162835
[{'concept': 'Q1162835'}, 'P36', 'Q193050']
SELECT DISTINCT ?x WHERE { ?x property:P36 resource:Q193050 . ?x rdf:type ontology:Q1162835 }
Érd
action filter_type
action find_reverse
entity Érd
relation capital
type district of Hungary
[{'concept': 'district of Hungary'}, 'capital', 'Érd']
SELECT DISTINCT ?x WHERE { ?x property:capital resource:Érd . ?x rdf:type ontology:district_of_Hungary }
[]
district of Hungary
Clarification for simple ques.
Q193050
SYSTEM
Did you mean Érd ?
Q193050 Q645567 Q740853
(c(Q1162835),P36,Q193050) (c(Q1162835),P36,Q645567) (c(Q1162835),P36,Q740853)
[ANSWER]
[{'concept': 'Q1162835'}, 'P36', 'Q193050'] [{'concept': 'Q1162835'}, 'P36', 'Q645567'] [{'concept': 'Q1162835'}, 'P36', 'Q740853']
SELECT DISTINCT ?x WHERE { ?x property:P36 resource:Q193050 . ?x rdf:type ontology:Q1162835 }
Érd Törökbálint Szigetszentmiklós
Did you mean Érd ?
Érd
[{'concept': 'district of Hungary'}, 'capital', 'Érd'] [{'concept': 'district of Hungary'}, 'capital', 'Törökbálint'] [{'concept': 'district of Hungary'}, 'capital', 'Szigetszentmiklós']
SELECT DISTINCT ?x WHERE { ?x property:capital resource:Érd . ?x rdf:type ontology:district_of_Hungary }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q1162835),P36,Q193050)
[{'concept': 'Q1162835'}, 'P36', 'Q193050']
[{'concept': 'district of Hungary'}, 'capital', 'Érd']
[]
Q722573
SYSTEM
Érd  District
Q722573
(c(Q1162835),P36,Q193050)
action filter_type
action find_reverse
entity Q193050
relation P36
type Q1162835
District Érd District consists of that city as its capital
[{'concept': 'Q1162835'}, 'P36', 'Q193050']
SELECT DISTINCT ?x WHERE { ?x property:P36 resource:Q193050 . ?x rdf:type ontology:Q1162835 }
Érd  District
District Érd District consists of that city as its capital
Érd  District
action filter_type
action find_reverse
entity Érd
relation capital
type district of Hungary
[{'concept': 'district of Hungary'}, 'capital', 'Érd']
SELECT DISTINCT ?x WHERE { ?x property:capital resource:Érd . ?x rdf:type ontology:district_of_Hungary }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q722573 Q276152 Q193050
P36
Q515
USER
Does Érd  District contain Dragomirești and Érd as its capital ?
(Q722573,P36,Q276152) (Q722573,P36,Q193050)
action is_in
entity Q722573
action intersection
action find_reverse
entity Q276152
relation P36
action find_reverse
entity Q193050
relation P36
['Q722573', 'P36', 'Q276152'] ['Q722573', 'P36', 'Q193050']
ASK WHERE { resource:Q722573 property:P36 resource:Q193050 . resource:Q722573 property:P36 resource:Q276152 }
Érd  District Dragomirești Érd
action is_in
entity Érd  District
action intersection
action find_reverse
entity Dragomirești
relation capital
action find_reverse
entity Érd
relation capital
['Érd  District', 'capital', 'Dragomirești'] ['Érd  District', 'capital', 'Érd']
ASK WHERE { resource:Érd__District property:capital resource:Érd . resource:Érd__District property:capital resource:Dragomirești }
[]
city
SYSTEM
NO and YES respectively
(Q722573,P36,Q276152) (Q722573,P36,Q193050)
action is_in
entity Q722573
action intersection
action find_reverse
entity Q276152
relation P36
action find_reverse
entity Q193050
relation P36
[ANSWER]
['Q722573', 'P36', 'Q276152'] ['Q722573', 'P36', 'Q193050']
ASK WHERE { resource:Q722573 property:P36 resource:Q193050 . resource:Q722573 property:P36 resource:Q276152 }
NO and YES respectively
action is_in
entity Érd  District
action intersection
action find_reverse
entity Dragomirești
relation capital
action find_reverse
entity Érd
relation capital
['Érd  District', 'capital', 'Dragomirești'] ['Érd  District', 'capital', 'Érd']
ASK WHERE { resource:Érd__District property:capital resource:Érd . resource:Érd__District property:capital resource:Dragomirești }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7668339 Q556196
P106
Q12737077
USER
Which occupations do János Aknai or T. J. Healey do for a living ?
OR((Q556196,P106,c(Q12737077)), (Q7668339,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q556196
relation P106
action find
entity Q7668339
relation P106
type Q12737077
{'OR': [['Q556196', 'P106', {'concept': 'Q12737077'}], ['Q7668339', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?o WHERE { { ?u property:P106 ?o . VALUES ( ?u ) { ( resource:Q556196 ) ( resource:Q7668339 ) } } . ?o rdf:type ontology:Q12737077 }
T. J. Healey János Aknai
action filter_type
action union
action find
entity János Aknai
relation occupation
action find
entity T. J. Healey
relation occupation
type occupation
{'OR': [['János Aknai', 'occupation', {'concept': 'occupation'}], ['T. J. Healey', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?o WHERE { { ?u property:occupation ?o . VALUES ( ?u ) { ( resource:János_Aknai ) ( resource:T._J._Healey ) } } . ?o rdf:type ontology:occupation }
[]
occupation
Q466640 Q937857
SYSTEM
horse trainer, association football player
Q466640 Q937857
OR((Q556196,P106,c(Q12737077)), (Q7668339,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q556196
relation P106
action find
entity Q7668339
relation P106
type Q12737077
[ANSWERS] do János Aknai or T. J. Healey do for a living
{'OR': [['Q556196', 'P106', {'concept': 'Q12737077'}], ['Q7668339', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?o WHERE { { ?u property:P106 ?o . VALUES ( ?u ) { ( resource:Q556196 ) ( resource:Q7668339 ) } } . ?o rdf:type ontology:Q12737077 }
horse trainer association football player
Horse trainer and association football player do János Aknai or T. J. Healey do for a living
horse trainer association football player
action filter_type
action union
action find
entity János Aknai
relation occupation
action find
entity T. J. Healey
relation occupation
type occupation
{'OR': [['János Aknai', 'occupation', {'concept': 'occupation'}], ['T. J. Healey', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?o WHERE { { ?u property:occupation ?o . VALUES ( ?u ) { ( resource:János_Aknai ) ( resource:T._J._Healey ) } } . ?o rdf:type ontology:occupation }
[]