Simple Question (Direct)
Simple Question
Q16173632
P27
Q15617994
USER
Which administrative territory is Eduard Bajet i Royo a civilian of ?
(Q16173632,P27,c(Q15617994))
action filter_type
action find
entity Q16173632
relation P27
type Q15617994
['Q16173632', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . resource:Q16173632 property:P27 ?f }
Eduard Bajet i Royo
action filter_type
action find
entity Eduard Bajet i Royo
relation country of citizenship
type designation for an administrative territorial entity
['Eduard Bajet i Royo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Eduard_Bajet_i_Royo property:country_of_citizenship ?f }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q16173632,P27,c(Q15617994))
action filter_type
action find
entity Q16173632
relation P27
type Q15617994
[ANSWER] is Eduard Bajet i Royo a civilian of
['Q16173632', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . resource:Q16173632 property:P27 ?f }
Spain
Spain is Eduard Bajet i Royo a civilian of
Spain
action filter_type
action find
entity Eduard Bajet i Royo
relation country of citizenship
type designation for an administrative territorial entity
['Eduard Bajet i Royo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Eduard_Bajet_i_Royo property:country_of_citizenship ?f }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16173632
P1412
Q34770
USER
Which language is spoken by that person ?
(Q29,P1412,c(Q34770))
action filter_type
action find
entity Q16173632
relation P1412
type Q34770
['Q29', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?l WHERE { resource:Q16173632 property:P1412 ?l . ?l rdf:type ontology:Q34770 }
Eduard Bajet i Royo
action filter_type
action find
entity Eduard Bajet i Royo
relation languages spoken, written or signed
type language
['Spain', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?l WHERE { resource:Eduard_Bajet_i_Royo property:languages_spoken,_written_or_signed ?l . ?l rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q29,P1412,c(Q34770))
action filter_type
action find
entity Q16173632
relation P1412
type Q34770
[ANSWER] is spoken by that person
['Q29', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?l WHERE { resource:Q16173632 property:P1412 ?l . ?l rdf:type ontology:Q34770 }
Spanish
Spanish is spoken by that person
Spanish
action filter_type
action find
entity Eduard Bajet i Royo
relation languages spoken, written or signed
type language
['Spain', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?l WHERE { resource:Eduard_Bajet_i_Royo property:languages_spoken,_written_or_signed ?l . ?l rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29
P276
Q350604
USER
What are situated at Spain ?
(c(Q350604),P276,Q29)
action filter_type
action find_reverse
entity Q29
relation P276
type Q350604
[{'concept': 'Q350604'}, 'P276', 'Q29']
SELECT DISTINCT ?g WHERE { ?g property:P276 resource:Q29 . ?g rdf:type ontology:Q350604 }
Spain
action filter_type
action find_reverse
entity Spain
relation location
type armed conflict
[{'concept': 'armed conflict'}, 'location', 'Spain']
SELECT DISTINCT ?g WHERE { ?g property:location resource:Spain . ?g rdf:type ontology:armed_conflict }
[]
armed conflict
Q12551 Q168442
SYSTEM
Hundred Years' War, Anglo-Spanish War (1625–1630)
Q12551 Q168442
(c(Q350604),P276,Q29)
action filter_type
action find_reverse
entity Q29
relation P276
type Q350604
[ANSWERS] are situated at Spain
[{'concept': 'Q350604'}, 'P276', 'Q29']
SELECT DISTINCT ?g WHERE { ?g property:P276 resource:Q29 . ?g rdf:type ontology:Q350604 }
Hundred Years' War Anglo-Spanish War (1625–1630)
Hundred Years' War and Anglo-Spanish War (1625–1630) are situated at Spain
Hundred Years' War Anglo-Spanish War (1625–1630)
action filter_type
action find_reverse
entity Spain
relation location
type armed conflict
[{'concept': 'armed conflict'}, 'location', 'Spain']
SELECT DISTINCT ?g WHERE { ?g property:location resource:Spain . ?g rdf:type ontology:armed_conflict }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16173632
P106
Q28640
USER
What are the job of Eduard Bajet i Royo ?
(Q16173632,P106,c(Q28640))
action filter_type
action find
entity Q16173632
relation P106
type Q28640
['Q16173632', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?j WHERE { resource:Q16173632 property:P106 ?j . ?j rdf:type ontology:Q28640 }
Eduard Bajet i Royo
action filter_type
action find
entity Eduard Bajet i Royo
relation occupation
type profession
['Eduard Bajet i Royo', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?j WHERE { resource:Eduard_Bajet_i_Royo property:occupation ?j . ?j rdf:type ontology:profession }
[]
profession
Q185351 Q40348
SYSTEM
jurist, lawyer
Q185351 Q40348
(Q16173632,P106,c(Q28640))
action filter_type
action find
entity Q16173632
relation P106
type Q28640
The job of Eduard Bajet i Royo are a [ANSWERS]
['Q16173632', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?j WHERE { resource:Q16173632 property:P106 ?j . ?j rdf:type ontology:Q28640 }
jurist lawyer
The job of Eduard Bajet i Royo are a jurist and lawyer
jurist lawyer
action filter_type
action find
entity Eduard Bajet i Royo
relation occupation
type profession
['Eduard Bajet i Royo', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?j WHERE { resource:Eduard_Bajet_i_Royo property:occupation ?j . ?j rdf:type ontology:profession }
[]
Clarification
Simple Question|Single Entity|Indirect
Q185351
P108
Q502895
USER
Who works for that profession ?
(c(Q502895),P108,Q185351)
action filter_type
action find_reverse
entity Q185351
relation P108
type Q502895
[{'concept': 'Q502895'}, 'P108', 'Q185351']
SELECT DISTINCT ?m WHERE { ?m property:P108 resource:Q185351 . ?m rdf:type ontology:Q502895 }
jurist
action filter_type
action find_reverse
entity jurist
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'jurist']
SELECT DISTINCT ?m WHERE { ?m property:employer resource:jurist . ?m rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q185351
SYSTEM
Did you mean jurist ?
Q185351 Q40348
(c(Q502895),P108,Q185351) (c(Q502895),P108,Q40348)
[ANSWER]
[{'concept': 'Q502895'}, 'P108', 'Q185351'] [{'concept': 'Q502895'}, 'P108', 'Q40348']
SELECT DISTINCT ?m WHERE { ?m property:P108 resource:Q185351 . ?m rdf:type ontology:Q502895 }
jurist lawyer
Did you mean jurist ?
jurist
[{'concept': 'common name'}, 'employer', 'jurist'] [{'concept': 'common name'}, 'employer', 'lawyer']
SELECT DISTINCT ?m WHERE { ?m property:employer resource:jurist . ?m rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P108,Q185351)
[{'concept': 'Q502895'}, 'P108', 'Q185351']
[{'concept': 'common name'}, 'employer', 'jurist']
[]
Q18549737
SYSTEM
Lucian Stângu
Q18549737
(c(Q502895),P108,Q185351)
action filter_type
action find_reverse
entity Q185351
relation P108
type Q502895
[ANSWER] works for that profession
[{'concept': 'Q502895'}, 'P108', 'Q185351']
SELECT DISTINCT ?m WHERE { ?m property:P108 resource:Q185351 . ?m rdf:type ontology:Q502895 }
Lucian Stângu
Lucian Stângu works for that profession
Lucian Stângu
action filter_type
action find_reverse
entity jurist
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'jurist']
SELECT DISTINCT ?m WHERE { ?m property:employer resource:jurist . ?m rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q18549737 Q1622272
P106
Q12737077
USER
Is university teacher the job of that person ?
(Q18549737,P106,Q1622272)
action is_in
entity Q1622272
action find
entity Q18549737
relation P106
['Q18549737', 'P106', 'Q1622272']
ASK WHERE { resource:Q18549737 property:P106 resource:Q1622272 }
Lucian Stângu university teacher
action is_in
entity university teacher
action find
entity Lucian Stângu
relation occupation
['Lucian Stângu', 'occupation', 'university teacher']
ASK WHERE { resource:Lucian_Stângu property:occupation resource:university_teacher }
[]
occupation
SYSTEM
YES
(Q18549737,P106,Q1622272)
action is_in
entity Q1622272
action find
entity Q18549737
relation P106
[ANSWER]
['Q18549737', 'P106', 'Q1622272']
ASK WHERE { resource:Q18549737 property:P106 resource:Q1622272 }
Yes
action is_in
entity university teacher
action find
entity Lucian Stângu
relation occupation
['Lucian Stângu', 'occupation', 'university teacher']
ASK WHERE { resource:Lucian_Stângu property:occupation resource:university_teacher }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q16173632 Q17082685 Q1492
P19
Q56061
USER
Does Eduard Bajet i Royo have birthplace at Shangus and Barcelona ?
(Q16173632,P19,Q17082685) (Q16173632,P19,Q1492)
action is_in
entity Q16173632
action intersection
action find_reverse
entity Q17082685
relation P19
action find_reverse
entity Q1492
relation P19
['Q16173632', 'P19', 'Q17082685'] ['Q16173632', 'P19', 'Q1492']
ASK WHERE { resource:Q16173632 property:P19 resource:Q17082685 . resource:Q16173632 property:P19 resource:Q1492 }
Eduard Bajet i Royo Shangus Barcelona
action is_in
entity Eduard Bajet i Royo
action intersection
action find_reverse
entity Shangus
relation place of birth
action find_reverse
entity Barcelona
relation place of birth
['Eduard Bajet i Royo', 'place of birth', 'Shangus'] ['Eduard Bajet i Royo', 'place of birth', 'Barcelona']
ASK WHERE { resource:Eduard_Bajet_i_Royo property:place_of_birth resource:Shangus . resource:Eduard_Bajet_i_Royo property:place_of_birth resource:Barcelona }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q16173632,P19,Q17082685) (Q16173632,P19,Q1492)
action is_in
entity Q16173632
action intersection
action find_reverse
entity Q17082685
relation P19
action find_reverse
entity Q1492
relation P19
[ANSWER]
['Q16173632', 'P19', 'Q17082685'] ['Q16173632', 'P19', 'Q1492']
ASK WHERE { resource:Q16173632 property:P19 resource:Q17082685 . resource:Q16173632 property:P19 resource:Q1492 }
NO and YES respectively
action is_in
entity Eduard Bajet i Royo
action intersection
action find_reverse
entity Shangus
relation place of birth
action find_reverse
entity Barcelona
relation place of birth
['Eduard Bajet i Royo', 'place of birth', 'Shangus'] ['Eduard Bajet i Royo', 'place of birth', 'Barcelona']
ASK WHERE { resource:Eduard_Bajet_i_Royo property:place_of_birth resource:Shangus . resource:Eduard_Bajet_i_Royo property:place_of_birth resource:Barcelona }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29
P551
Q502895
USER
Which people live in Spain ?
(c(Q502895),P551,Q29)
action filter_type
action find_reverse
entity Q29
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q29']
SELECT DISTINCT ?t WHERE { ?t property:P551 resource:Q29 . ?t rdf:type ontology:Q502895 }
Spain
action filter_type
action find_reverse
entity Spain
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Spain']
SELECT DISTINCT ?t WHERE { ?t property:residence resource:Spain . ?t rdf:type ontology:common_name }
[]
common name
Q171363 Q5335826 Q18720176
SYSTEM
Viggo Mortensen, Eddie August Schneider, Nuria Oliver
Q5993001 Q5860309 Q2944541 Q292658 Q9014784 Q1183434 Q20966475 Q2066366 Q18720176 Q4216907 Q15706508 Q5041960 Q171363 Q18590538 Q5335826 Q41548 Q10914698 Q17106365 Q16146051 Q19629253 Q5671358 Q20801601 Q23900519 Q5880797 Q4487 Q10982623 Q3754104 Q6141751 Q3753437 Q11698858
(c(Q502895),P551,Q29)
action filter_type
action find_reverse
entity Q29
relation P551
type Q502895
[ANSWERS] live in Spain
[{'concept': 'Q502895'}, 'P551', 'Q29']
SELECT DISTINCT ?t WHERE { ?t property:P551 resource:Q29 . ?t rdf:type ontology:Q502895 }
Manuel Fontdevila i Cruixent Hortensia Gelabert Arnau Brugués-Davi La Argentina José Ruiz Santaella Nicolás Cabrera Virgilio Garrán Rico Óscar Jaenada Nuria Oliver Ramon Castroviejo Julio Espinosa Guerra Carlos Cruz González Viggo Mortensen Esteban Pérez Pérez Eddie August Schneider Antonio Banderas Eduardo Borrás Ole Dalgaard Roberto Carballés Baena Jacques Dessalines Carles Reig i Morell Juana Bignozzi Fernando Sabio Dutoit Glenda Kapstein Lomboy Federico Gamboa Norma Bacaicoa Severo Moto Nsá Teodoro Aragón Foureaux Joaquín Sanz Gadea Pere Comas i Calvet
Viggo Mortensen, Eddie August Schneider and Nuria Oliver live in Spain
Viggo Mortensen Eddie August Schneider Nuria Oliver
action filter_type
action find_reverse
entity Spain
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Spain']
SELECT DISTINCT ?t WHERE { ?t property:residence resource:Spain . ?t rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q171363 Q5335826 Q18720176
P734
Q82799
USER
Which names are associated with Viggo Mortensen, Eddie August Schneider and Nuria Oliver ?
(Q171363,P734,c(Q82799)) (Q5335826,P734,c(Q82799)) (Q18720176,P734,c(Q82799))
action union
action filter_type
action find
entity Q171363
relation P734
type Q82799
action filter_type
action find
entity Q5335826
relation P734
type Q82799
action filter_type
action find
entity Q18720176
relation P734
type Q82799
['Q171363', 'P734', {'concept': 'Q82799'}] ['Q5335826', 'P734', {'concept': 'Q82799'}] ['Q18720176', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?c WHERE { { resource:Q171363 property:P734 ?c . ?c rdf:type ontology:Q82799 } UNION { resource:Q5335826 property:P734 ?c . ?c rdf:type ontology:Q82799 } }
Viggo Mortensen Eddie August Schneider Nuria Oliver
action union
action filter_type
action find
entity Viggo Mortensen
relation family name
type name
action filter_type
action find
entity Eddie August Schneider
relation family name
type name
action filter_type
action find
entity Nuria Oliver
relation family name
type name
['Viggo Mortensen', 'family name', {'concept': 'name'}] ['Eddie August Schneider', 'family name', {'concept': 'name'}] ['Nuria Oliver', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?c WHERE { { resource:Viggo_Mortensen property:family_name ?c . ?c rdf:type ontology:name } UNION { resource:Eddie_August_Schneider property:family_name ?c . ?c rdf:type ontology:name } }
[]
name
Q1948718 Q11703653 Q16931215
SYSTEM
Mortensen, Schneider, Oliver
Q1948718 Q11703653 Q16931215
(Q171363,P734,c(Q82799)) (Q5335826,P734,c(Q82799)) (Q18720176,P734,c(Q82799))
action union
action filter_type
action find
entity Q171363
relation P734
type Q82799
action filter_type
action find
entity Q5335826
relation P734
type Q82799
action filter_type
action find
entity Q18720176
relation P734
type Q82799
[ANSWERS] are associated with Viggo Mortensen, Eddie August Schneider and Nuria Oliver
['Q171363', 'P734', {'concept': 'Q82799'}] ['Q5335826', 'P734', {'concept': 'Q82799'}] ['Q18720176', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?c WHERE { { resource:Q171363 property:P734 ?c . ?c rdf:type ontology:Q82799 } UNION { resource:Q5335826 property:P734 ?c . ?c rdf:type ontology:Q82799 } }
Mortensen Schneider Oliver
Mortensen, Schneider and Oliver are associated with Viggo Mortensen, Eddie August Schneider and Nuria Oliver
Mortensen Schneider Oliver
action union
action filter_type
action find
entity Viggo Mortensen
relation family name
type name
action filter_type
action find
entity Eddie August Schneider
relation family name
type name
action filter_type
action find
entity Nuria Oliver
relation family name
type name
['Viggo Mortensen', 'family name', {'concept': 'name'}] ['Eddie August Schneider', 'family name', {'concept': 'name'}] ['Nuria Oliver', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?c WHERE { { resource:Viggo_Mortensen property:family_name ?c . ?c rdf:type ontology:name } UNION { resource:Eddie_August_Schneider property:family_name ?c . ?c rdf:type ontology:name } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5335826
P26
Q502895
USER
Which person is the life partner of Eddie August Schneider ?
(c(Q502895),P26,Q5335826)
action filter_type
action find
entity Q5335826
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q5335826']
SELECT DISTINCT ?f WHERE { resource:Q5335826 property:P26 ?f . ?f rdf:type ontology:Q502895 }
Eddie August Schneider
action filter_type
action find
entity Eddie August Schneider
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Eddie August Schneider']
SELECT DISTINCT ?f WHERE { resource:Eddie_August_Schneider property:spouse ?f . ?f rdf:type ontology:common_name }
[]
common name
Q20720196
SYSTEM
Gretchen Francis Hahnen
Q20720196
(c(Q502895),P26,Q5335826)
action filter_type
action find
entity Q5335826
relation P26
type Q502895
[ANSWER] is the life partner of Eddie August Schneider
[{'concept': 'Q502895'}, 'P26', 'Q5335826']
SELECT DISTINCT ?f WHERE { resource:Q5335826 property:P26 ?f . ?f rdf:type ontology:Q502895 }
Gretchen Francis Hahnen
Gretchen Francis Hahnen is the life partner of Eddie August Schneider
Gretchen Francis Hahnen
action filter_type
action find
entity Eddie August Schneider
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Eddie August Schneider']
SELECT DISTINCT ?f WHERE { resource:Eddie_August_Schneider property:spouse ?f . ?f rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1223056 Q29
P530 P19
Q15617994
USER
Which administrative territories holds diplomatic relationship with Spain or are the places of birth of Dieter Ziegenfeuter ?
OR((Q29,P530,c(Q15617994)), (Q1223056,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q29
relation P530
action find
entity Q1223056
relation P19
type Q15617994
{'OR': [['Q29', 'P530', {'concept': 'Q15617994'}], ['Q1223056', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q1223056 property:P19 ?o } UNION { resource:Q29 property:P530 ?o } } . ?o rdf:type ontology:Q15617994 }
Dieter Ziegenfeuter Spain
action filter_type
action union
action find
entity Spain
relation diplomatic relation
action find
entity Dieter Ziegenfeuter
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Spain', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Dieter Ziegenfeuter', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Dieter_Ziegenfeuter property:place_of_birth ?o } UNION { resource:Spain property:diplomatic_relation ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q38 Q2871
SYSTEM
Brazil, Italy, Hagen
Q155 Q38 Q2871
OR((Q29,P530,c(Q15617994)), (Q1223056,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q29
relation P530
action find
entity Q1223056
relation P19
type Q15617994
[ANSWERS] hold diplomatic relationship with Spain or are the places of birth of Dieter Ziegenfeuter
{'OR': [['Q29', 'P530', {'concept': 'Q15617994'}], ['Q1223056', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q1223056 property:P19 ?o } UNION { resource:Q29 property:P530 ?o } } . ?o rdf:type ontology:Q15617994 }
Brazil Italy Hagen
Brazil, Italy and Hagen hold diplomatic relationship with Spain or are the places of birth of Dieter Ziegenfeuter
Brazil Italy Hagen
action filter_type
action union
action find
entity Spain
relation diplomatic relation
action find
entity Dieter Ziegenfeuter
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Spain', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Dieter Ziegenfeuter', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Dieter_Ziegenfeuter property:place_of_birth ?o } UNION { resource:Spain property:diplomatic_relation ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]