Simple Question (Direct)
Simple Question
Q7734075
P364
Q11028
USER
What is the original language of creation of The First Auto ?
(Q7734075,P364,c(Q11028))
action filter_type
action find
entity Q7734075
relation P364
type Q11028
['Q7734075', 'P364', {'concept': 'Q11028'}]
SELECT DISTINCT ?j WHERE { resource:Q7734075 property:P364 ?j . ?j rdf:type ontology:Q11028 }
The First Auto
action filter_type
action find
entity The First Auto
relation original language of work
type information
['The First Auto', 'original language of work', {'concept': 'information'}]
SELECT DISTINCT ?j WHERE { resource:The_First_Auto property:original_language_of_work ?j . ?j rdf:type ontology:information }
[]
information
Q21686005
SYSTEM
n/a (silent film)
Q21686005
(Q7734075,P364,c(Q11028))
action filter_type
action find
entity Q7734075
relation P364
type Q11028
The original language of creation of The First Auto is [ANSWER]
['Q7734075', 'P364', {'concept': 'Q11028'}]
SELECT DISTINCT ?j WHERE { resource:Q7734075 property:P364 ?j . ?j rdf:type ontology:Q11028 }
n/a (silent film)
The original language of creation of The First Auto is n/a (silent film)
n/a (silent film)
action filter_type
action find
entity The First Auto
relation original language of work
type information
['The First Auto', 'original language of work', {'concept': 'information'}]
SELECT DISTINCT ?j WHERE { resource:The_First_Auto property:original_language_of_work ?j . ?j rdf:type ontology:information }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7734075
P161
Q502895
USER
Which people starred in The First Auto ?
(Q7734075,P161,c(Q502895))
action filter_type
action find
entity Q7734075
relation P161
type Q502895
['Q7734075', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q7734075 property:P161 ?p . ?p rdf:type ontology:Q502895 }
The First Auto
action filter_type
action find
entity The First Auto
relation cast member
type common name
['The First Auto', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:The_First_Auto property:cast_member ?p . ?p rdf:type ontology:common_name }
[]
common name
Q1196052 Q456350 Q5077393
SYSTEM
Russell Simpson, Patsy Ruth Miller, Charles Emmett Mack
Q1196052 Q456350 Q5077393
(Q7734075,P161,c(Q502895))
action filter_type
action find
entity Q7734075
relation P161
type Q502895
[ANSWERS] starred in The First Auto
['Q7734075', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q7734075 property:P161 ?p . ?p rdf:type ontology:Q502895 }
Russell Simpson Patsy Ruth Miller Charles Emmett Mack
Russell Simpson, Patsy Ruth Miller and Charles Emmett Mack starred in The First Auto
Russell Simpson Patsy Ruth Miller Charles Emmett Mack
action filter_type
action find
entity The First Auto
relation cast member
type common name
['The First Auto', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:The_First_Auto property:cast_member ?p . ?p rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q310729
Q502895
USER
And also tell me about Tristan & Isolde?
(Q310729,P161,c(Q502895))
action filter_type
action find
entity Q310729
relation P161
type Q502895
['Q310729', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q310729 property:P161 ?f . ?f rdf:type ontology:Q502895 }
Tristan & Isolde
action filter_type
action find
entity Tristan & Isolde
relation cast member
type common name
['Tristan & Isolde', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Tristan_&_Isolde property:cast_member ?f . ?f rdf:type ontology:common_name }
[]
common name
Q306403 Q312712 Q295498
SYSTEM
James Franco, Mark Strong, Henry Cavill
Q2926038 Q312531 Q1577922 Q454724 Q299217 Q312712 Q88303 Q1591382 Q2557362 Q306403 Q324068 Q6111701 Q3569399 Q229156 Q708801 Q295498 Q388557 Q5578715
(Q310729,P161,c(Q502895))
action filter_type
action find
entity Q310729
relation P161
type Q502895
[ANSWERS]
['Q310729', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q310729 property:P161 ?f . ?f rdf:type ontology:Q502895 }
Bronagh Gallagher Thomas Brodie-Sangster Hans-Martin Stier Barbora Kodetová Rufus Sewell Mark Strong Thomas Morris Richard Dillane David Fisher James Franco Marek Vašut Ronan Vibert Winter Ave Zoli Sophia Myles David O'Hara Henry Cavill Dexter Fletcher J. B. Blanc
James Franco Mark Strong Henry Cavill
action filter_type
action find
entity Tristan & Isolde
relation cast member
type common name
['Tristan & Isolde', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Tristan_&_Isolde property:cast_member ?f . ?f rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q310729
P161
Q838948
USER
Do Tristan & Isolde have those people as actor ?
(Q310729,P161,Q306403) (Q310729,P161,Q312712) (Q310729,P161,Q295498)
action is_in
entity prev_answer
action find
entity Q310729
relation P161
['Q310729', 'P161', 'Q306403'] ['Q310729', 'P161', 'Q312712'] ['Q310729', 'P161', 'Q295498']
ASK WHERE { resource:Q310729 property:P161 ?c . VALUES ( ?c ) { ( resource:Q2926038 ) ( resource:Q312531 ) ( resource:Q1577922 ) } }
Tristan & Isolde
action is_in
entity prev_answer
action find
entity Tristan & Isolde
relation cast member
['Tristan & Isolde', 'cast member', 'James Franco'] ['Tristan & Isolde', 'cast member', 'Mark Strong'] ['Tristan & Isolde', 'cast member', 'Henry Cavill']
ASK WHERE { resource:Tristan_&_Isolde property:cast_member ?c . VALUES ( ?c ) { ( resource:Bronagh_Gallagher ) ( resource:Thomas_Brodie-Sangster ) ( resource:Hans-Martin_Stier ) } }
[]
work of art
SYSTEM
YES
(Q310729,P161,Q306403) (Q310729,P161,Q312712) (Q310729,P161,Q295498)
action is_in
entity prev_answer
action find
entity Q310729
relation P161
[ANSWER]
['Q310729', 'P161', 'Q306403'] ['Q310729', 'P161', 'Q312712'] ['Q310729', 'P161', 'Q295498']
ASK WHERE { resource:Q310729 property:P161 ?c . VALUES ( ?c ) { ( resource:Q2926038 ) ( resource:Q312531 ) ( resource:Q1577922 ) } }
Yes
action is_in
entity prev_answer
action find
entity Tristan & Isolde
relation cast member
['Tristan & Isolde', 'cast member', 'James Franco'] ['Tristan & Isolde', 'cast member', 'Mark Strong'] ['Tristan & Isolde', 'cast member', 'Henry Cavill']
ASK WHERE { resource:Tristan_&_Isolde property:cast_member ?c . VALUES ( ?c ) { ( resource:Bronagh_Gallagher ) ( resource:Thomas_Brodie-Sangster ) ( resource:Hans-Martin_Stier ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q5077393 Q509557 Q9238
P27
Q15617994
USER
Is Charles Emmett Mack a citizen of Krün and Cavagnolo ?
(Q5077393,P27,Q509557) (Q5077393,P27,Q9238)
action is_in
entity Q5077393
action intersection
action find_reverse
entity Q509557
relation P27
action find_reverse
entity Q9238
relation P27
['Q5077393', 'P27', 'Q509557'] ['Q5077393', 'P27', 'Q9238']
ASK WHERE { resource:Q5077393 property:P27 resource:Q509557 . resource:Q5077393 property:P27 resource:Q9238 }
Charles Emmett Mack Krün Cavagnolo
action is_in
entity Charles Emmett Mack
action intersection
action find_reverse
entity Krün
relation country of citizenship
action find_reverse
entity Cavagnolo
relation country of citizenship
['Charles Emmett Mack', 'country of citizenship', 'Krün'] ['Charles Emmett Mack', 'country of citizenship', 'Cavagnolo']
ASK WHERE { resource:Charles_Emmett_Mack property:country_of_citizenship resource:Krün . resource:Charles_Emmett_Mack property:country_of_citizenship resource:Cavagnolo }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q5077393,P27,Q509557) (Q5077393,P27,Q9238)
action is_in
entity Q5077393
action intersection
action find_reverse
entity Q509557
relation P27
action find_reverse
entity Q9238
relation P27
[ANSWER]
['Q5077393', 'P27', 'Q509557'] ['Q5077393', 'P27', 'Q9238']
ASK WHERE { resource:Q5077393 property:P27 resource:Q509557 . resource:Q5077393 property:P27 resource:Q9238 }
No
action is_in
entity Charles Emmett Mack
action intersection
action find_reverse
entity Krün
relation country of citizenship
action find_reverse
entity Cavagnolo
relation country of citizenship
['Charles Emmett Mack', 'country of citizenship', 'Krün'] ['Charles Emmett Mack', 'country of citizenship', 'Cavagnolo']
ASK WHERE { resource:Charles_Emmett_Mack property:country_of_citizenship resource:Krün . resource:Charles_Emmett_Mack property:country_of_citizenship resource:Cavagnolo }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1334296 Q306403
P161
Q15416
USER
Which television programs have James Franco or Wilfrid Hyde-White as actor ?
OR((c(Q15416),P161,Q306403), (c(Q15416),P161,Q1334296))
action filter_type
action union
action find_reverse
entity Q306403
relation P161
action find_reverse
entity Q1334296
relation P161
type Q15416
{'OR': [[{'concept': 'Q15416'}, 'P161', 'Q306403'], [{'concept': 'Q15416'}, 'P161', 'Q1334296']]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?m ) { ( resource:Q1334296 ) ( resource:Q306403 ) } . ?b property:P161 ?m } . ?b rdf:type ontology:Q15416 }
Wilfrid Hyde-White James Franco
action filter_type
action union
action find_reverse
entity James Franco
relation cast member
action find_reverse
entity Wilfrid Hyde-White
relation cast member
type television program
{'OR': [[{'concept': 'television program'}, 'cast member', 'James Franco'], [{'concept': 'television program'}, 'cast member', 'Wilfrid Hyde-White']]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?m ) { ( resource:Wilfrid_Hyde-White ) ( resource:James_Franco ) } . ?b property:cast_member ?m } . ?b rdf:type ontology:television_program }
[]
television program
Q999370 Q500769 Q3791087 Q1218548 Q1136370 Q639449
SYSTEM
Buck Rogers in the 25th Century, Freaks and Geeks, The Associates, The Great Houdini, General Hospital, James Dean
Q999370 Q500769 Q3791087 Q1218548 Q1136370 Q639449
OR((c(Q15416),P161,Q306403), (c(Q15416),P161,Q1334296))
action filter_type
action union
action find_reverse
entity Q306403
relation P161
action find_reverse
entity Q1334296
relation P161
type Q15416
[ANSWERS] have James Franco or Wilfrid Hyde-White as actor
{'OR': [[{'concept': 'Q15416'}, 'P161', 'Q306403'], [{'concept': 'Q15416'}, 'P161', 'Q1334296']]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?m ) { ( resource:Q1334296 ) ( resource:Q306403 ) } . ?b property:P161 ?m } . ?b rdf:type ontology:Q15416 }
Buck Rogers in the 25th Century Freaks and Geeks The Associates The Great Houdini General Hospital James Dean
Buck Rogers in the 25th Century, Freaks and Geeks, The Associates, The Great Houdini, General Hospital and James Dean have James Franco or Wilfrid Hyde-White as actor
Buck Rogers in the 25th Century Freaks and Geeks The Associates The Great Houdini General Hospital James Dean
action filter_type
action union
action find_reverse
entity James Franco
relation cast member
action find_reverse
entity Wilfrid Hyde-White
relation cast member
type television program
{'OR': [[{'concept': 'television program'}, 'cast member', 'James Franco'], [{'concept': 'television program'}, 'cast member', 'Wilfrid Hyde-White']]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?m ) { ( resource:Wilfrid_Hyde-White ) ( resource:James_Franco ) } . ?b property:cast_member ?m } . ?b rdf:type ontology:television_program }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q14087244 Q9238
P47 P27
Q15617994
USER
Which administrative territories share the border with Cavagnolo or are the countries of citizenship of Julio Gonzalez Fernandez ?
OR((Q9238,P47,c(Q15617994)), (Q14087244,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q9238
relation P47
action find
entity Q14087244
relation P27
type Q15617994
{'OR': [['Q9238', 'P47', {'concept': 'Q15617994'}], ['Q14087244', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q9238 property:P47 ?j } UNION { resource:Q14087244 property:P27 ?j } } . ?j rdf:type ontology:Q15617994 }
Julio Gonzalez Fernandez Cavagnolo
action filter_type
action union
action find
entity Cavagnolo
relation shares border with
action find
entity Julio Gonzalez Fernandez
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Cavagnolo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Julio Gonzalez Fernandez', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Cavagnolo property:shares_border_with ?j } UNION { resource:Julio_Gonzalez_Fernandez property:country_of_citizenship ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q9493 Q17838 Q9097 Q17873 Q29 Q9416
SYSTEM
Monteu da Po, Moransengo, Brusasco, Tonengo, Spain, Lauriano
Q9493 Q17838 Q9097 Q17873 Q29 Q9416
OR((Q9238,P47,c(Q15617994)), (Q14087244,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q9238
relation P47
action find
entity Q14087244
relation P27
type Q15617994
[ANSWERS] share the border with Cavagnolo or are the countries of citizenship of Julio Gonzalez Fernandez
{'OR': [['Q9238', 'P47', {'concept': 'Q15617994'}], ['Q14087244', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q9238 property:P47 ?j } UNION { resource:Q14087244 property:P27 ?j } } . ?j rdf:type ontology:Q15617994 }
Monteu da Po Moransengo Brusasco Tonengo Spain Lauriano
Monteu da Po, Moransengo, Brusasco, Tonengo, Spain and Lauriano share the border with Cavagnolo or are the countries of citizenship of Julio Gonzalez Fernandez
Monteu da Po Moransengo Brusasco Tonengo Spain Lauriano
action filter_type
action union
action find
entity Cavagnolo
relation shares border with
action find
entity Julio Gonzalez Fernandez
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Cavagnolo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Julio Gonzalez Fernandez', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Cavagnolo property:shares_border_with ?j } UNION { resource:Julio_Gonzalez_Fernandez property:country_of_citizenship ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q17838
P17
Q15617994
USER
Which administrative territory is that one located in ?
(Q17838,P17,c(Q15617994))
action filter_type
action find
entity Q17838
relation P17
type Q15617994
['Q17838', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q17838 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
Moransengo
action filter_type
action find
entity Moransengo
relation country
type designation for an administrative territorial entity
['Moransengo', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Moransengo property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q17873
SYSTEM
Did you mean Tonengo ?
Q9493 Q17838 Q9097 Q17873 Q29 Q9416
(Q9493,P17,c(Q15617994)) (Q17838,P17,c(Q15617994)) (Q9097,P17,c(Q15617994)) (Q17873,P17,c(Q15617994)) (Q29,P17,c(Q15617994)) (Q9416,P17,c(Q15617994))
[ANSWER]
['Q9493', 'P17', {'concept': 'Q15617994'}] ['Q17838', 'P17', {'concept': 'Q15617994'}] ['Q9097', 'P17', {'concept': 'Q15617994'}] ['Q17873', 'P17', {'concept': 'Q15617994'}] ['Q29', 'P17', {'concept': 'Q15617994'}] ['Q9416', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q17838 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
Monteu da Po Moransengo Brusasco Tonengo Spain Lauriano
Did you mean Tonengo ?
Tonengo
['Monteu da Po', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Moransengo', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Brusasco', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Tonengo', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Spain', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Lauriano', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Moransengo property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Moransengo. Could you tell me the answer for that?
(Q17838,P17,c(Q15617994))
Q17838
['Q17838', 'P17', {'concept': 'Q15617994'}]
['Moransengo', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38
SYSTEM
Italy
Q38
(Q17838,P17,c(Q15617994))
action filter_type
action find
entity Q17838
relation P17
type Q15617994
That one is located in [ANSWER]
['Q17838', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q17838 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
Italy
That one is located in Italy
Italy
action filter_type
action find
entity Moransengo
relation country
type designation for an administrative territorial entity
['Moransengo', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Moransengo property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]