Simple Question (Direct)
Simple Question
Q9032733
P19
Q56061
USER
Which administrative territory is the birthplace of Miguel García Martín ?
(Q9032733,P19,c(Q56061))
action filter_type
action find
entity Q9032733
relation P19
type Q56061
['Q9032733', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q9032733 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Miguel García Martín
action filter_type
action find
entity Miguel García Martín
relation place of birth
type administrative territorial entity
['Miguel García Martín', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Miguel_García_Martín property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q15695
SYSTEM
Salamanca
Q15695
(Q9032733,P19,c(Q56061))
action filter_type
action find
entity Q9032733
relation P19
type Q56061
[ANSWER] is the birthplace of Miguel García Martín
['Q9032733', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q9032733 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Salamanca
Salamanca is the birthplace of Miguel García Martín
Salamanca
action filter_type
action find
entity Miguel García Martín
relation place of birth
type administrative territorial entity
['Miguel García Martín', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Miguel_García_Martín property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15695
P1313
Q12737077
USER
Which occupation is fulfilled by that administrative territory ?
(Q15695,P1313,c(Q12737077))
action filter_type
action find
entity Q15695
relation P1313
type Q12737077
['Q15695', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q15695 property:P1313 ?y . ?y rdf:type ontology:Q12737077 }
Salamanca
action filter_type
action find
entity Salamanca
relation office held by head of government
type occupation
['Salamanca', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Salamanca property:office_held_by_head_of_government ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q26691752
SYSTEM
mayor of Salamanca
Q26691752
(Q15695,P1313,c(Q12737077))
action filter_type
action find
entity Q15695
relation P1313
type Q12737077
The [ANSWER] is fulfilled by that administrative territory
['Q15695', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q15695 property:P1313 ?y . ?y rdf:type ontology:Q12737077 }
mayor of Salamanca
The mayor of Salamanca is fulfilled by that administrative territory
mayor of Salamanca
action filter_type
action find
entity Salamanca
relation office held by head of government
type occupation
['Salamanca', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Salamanca property:office_held_by_head_of_government ?y . ?y rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q26691752 Q111883 Q629567
P17
Q15617994
USER
Is that occupation located in Poggio Berni and Stipsdorf ?
(Q26691752,P17,Q111883) (Q26691752,P17,Q629567)
action is_in
entity Q26691752
action intersection
action find_reverse
entity Q111883
relation P17
action find_reverse
entity Q629567
relation P17
['Q26691752', 'P17', 'Q111883'] ['Q26691752', 'P17', 'Q629567']
ASK WHERE { resource:Q26691752 property:P17 resource:Q111883 . resource:Q26691752 property:P17 resource:Q629567 }
mayor of Salamanca Poggio Berni Stipsdorf
action is_in
entity mayor of Salamanca
action intersection
action find_reverse
entity Poggio Berni
relation country
action find_reverse
entity Stipsdorf
relation country
['mayor of Salamanca', 'country', 'Poggio Berni'] ['mayor of Salamanca', 'country', 'Stipsdorf']
ASK WHERE { resource:mayor_of_Salamanca property:country resource:Poggio_Berni . resource:mayor_of_Salamanca property:country resource:Stipsdorf }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q26691752,P17,Q111883) (Q26691752,P17,Q629567)
action is_in
entity Q26691752
action intersection
action find_reverse
entity Q111883
relation P17
action find_reverse
entity Q629567
relation P17
[ANSWER]
['Q26691752', 'P17', 'Q111883'] ['Q26691752', 'P17', 'Q629567']
ASK WHERE { resource:Q26691752 property:P17 resource:Q111883 . resource:Q26691752 property:P17 resource:Q629567 }
No
action is_in
entity mayor of Salamanca
action intersection
action find_reverse
entity Poggio Berni
relation country
action find_reverse
entity Stipsdorf
relation country
['mayor of Salamanca', 'country', 'Poggio Berni'] ['mayor of Salamanca', 'country', 'Stipsdorf']
ASK WHERE { resource:mayor_of_Salamanca property:country resource:Poggio_Berni . resource:mayor_of_Salamanca property:country resource:Stipsdorf }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q155 Q629567
P530 P17
Q1048835
USER
Which political territories do Stipsdorf belong to and have diplomatic relationships with Brazil ?
AND((Q629567,P17,c(Q1048835)), (Q155,P530,c(Q1048835)))
action filter_type
action intersection
action find
entity Q629567
relation P17
action find
entity Q155
relation P530
type Q1048835
{'AND': [['Q629567', 'P17', {'concept': 'Q1048835'}], ['Q155', 'P530', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { resource:Q629567 property:P17 ?n . resource:Q155 property:P530 ?n . ?n rdf:type ontology:Q1048835 }
Brazil Stipsdorf
action filter_type
action intersection
action find
entity Stipsdorf
relation country
action find
entity Brazil
relation diplomatic relation
type political territorial entity
{'AND': [['Stipsdorf', 'country', {'concept': 'political territorial entity'}], ['Brazil', 'diplomatic relation', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { resource:Stipsdorf property:country ?n . resource:Brazil property:diplomatic_relation ?n . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q629567,P17,c(Q1048835)), (Q155,P530,c(Q1048835)))
action filter_type
action intersection
action find
entity Q629567
relation P17
action find
entity Q155
relation P530
type Q1048835
Stipsdorf belong to Nazi [ANSWER]
{'AND': [['Q629567', 'P17', {'concept': 'Q1048835'}], ['Q155', 'P530', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { resource:Q629567 property:P17 ?n . resource:Q155 property:P530 ?n . ?n rdf:type ontology:Q1048835 }
Germany
Stipsdorf belong to Nazi Germany
Germany
action filter_type
action intersection
action find
entity Stipsdorf
relation country
action find
entity Brazil
relation diplomatic relation
type political territorial entity
{'AND': [['Stipsdorf', 'country', {'concept': 'political territorial entity'}], ['Brazil', 'diplomatic relation', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { resource:Stipsdorf property:country ?n . resource:Brazil property:diplomatic_relation ?n . ?n rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6212449 Q9032733
P106
Q12737077
USER
Which occupations do Miguel García Martín or Joe Speca do for a living ?
OR((Q9032733,P106,c(Q12737077)), (Q6212449,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q9032733
relation P106
action find
entity Q6212449
relation P106
type Q12737077
{'OR': [['Q9032733', 'P106', {'concept': 'Q12737077'}], ['Q6212449', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q12737077 . { VALUES ( ?n ) { ( resource:Q9032733 ) ( resource:Q6212449 ) } . ?n property:P106 ?l } }
Joe Speca Miguel García Martín
action filter_type
action union
action find
entity Miguel García Martín
relation occupation
action find
entity Joe Speca
relation occupation
type occupation
{'OR': [['Miguel García Martín', 'occupation', {'concept': 'occupation'}], ['Joe Speca', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:occupation . { VALUES ( ?n ) { ( resource:Miguel_García_Martín ) ( resource:Joe_Speca ) } . ?n property:occupation ?l } }
[]
occupation
Q628099 Q937857
SYSTEM
association football manager, association football player
Q628099 Q937857
OR((Q9032733,P106,c(Q12737077)), (Q6212449,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q9032733
relation P106
action find
entity Q6212449
relation P106
type Q12737077
[ANSWERS] Miguel García Martín or Joe Speca do for a living
{'OR': [['Q9032733', 'P106', {'concept': 'Q12737077'}], ['Q6212449', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q12737077 . { VALUES ( ?n ) { ( resource:Q9032733 ) ( resource:Q6212449 ) } . ?n property:P106 ?l } }
association football manager association football player
Association football manager and association football player Miguel García Martín or Joe Speca do for a living
association football manager association football player
action filter_type
action union
action find
entity Miguel García Martín
relation occupation
action find
entity Joe Speca
relation occupation
type occupation
{'OR': [['Miguel García Martín', 'occupation', {'concept': 'occupation'}], ['Joe Speca', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:occupation . { VALUES ( ?n ) { ( resource:Miguel_García_Martín ) ( resource:Joe_Speca ) } . ?n property:occupation ?l } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q628099
P641
Q349
USER
Which sport did that occupation participate in ?
(Q628099,P641,c(Q349))
action filter_type
action find
entity Q628099
relation P641
type Q349
['Q628099', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?b WHERE { resource:Q628099 property:P641 ?b . ?b rdf:type ontology:Q349 }
association football manager
action filter_type
action find
entity association football manager
relation sport
type sport
['association football manager', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?b WHERE { resource:association_football_manager property:sport ?b . ?b rdf:type ontology:sport }
[]
sport
Clarification for simple ques.
Q937857
SYSTEM
Did you mean association football player ?
Q628099 Q937857
(Q628099,P641,c(Q349)) (Q937857,P641,c(Q349))
[ANSWER]
['Q628099', 'P641', {'concept': 'Q349'}] ['Q937857', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?b WHERE { resource:Q628099 property:P641 ?b . ?b rdf:type ontology:Q349 }
association football manager association football player
Did you mean association football player ?
association football player
['association football manager', 'sport', {'concept': 'sport'}] ['association football player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?b WHERE { resource:association_football_manager property:sport ?b . ?b rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
USER
No, I meant association football manager. Could you tell me the answer for that?
(Q628099,P641,c(Q349))
Q628099
['Q628099', 'P641', {'concept': 'Q349'}]
['association football manager', 'sport', {'concept': 'sport'}]
[]
Q2736
SYSTEM
association football
Q2736
(Q628099,P641,c(Q349))
action filter_type
action find
entity Q628099
relation P641
type Q349
That occupation participated in [ANSWER]
['Q628099', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?b WHERE { resource:Q628099 property:P641 ?b . ?b rdf:type ontology:Q349 }
association football
That occupation participated in association football
association football
action filter_type
action find
entity association football manager
relation sport
type sport
['association football manager', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?b WHERE { resource:association_football_manager property:sport ?b . ?b rdf:type ontology:sport }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P101
Q349 Q502895 Q2342494
USER
Which sports are the area of around the same number of people or collectables as that sport ?
(c(Q502895)|c(Q2342494),P101,c(Q349))
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q349
type Q502895
action find_reverse_tuple_counts
relation P101
type Q349
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q2736
relation P101
type Q502895
type Q2342494
[[{'concept': 'Q502895'}, {'concept': 'Q2342494'}], 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?t ) AS ?a ) WHERE { { ?t property:P101 ?s . ?s rdf:type ontology:Q349 . ?t rdf:type ontology:Q2342494 } UNION { ?s rdf:type ontology:Q349 . ?t rdf:type ontology:Q502895 . ?t property:P101 ?s } } GROUP BY ?s } . FILTER ( ?a = ?j ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { ?w property:P101 resource:Q2736 . { { ?w rdf:type ontology:Q502895 } UNION { ?w rdf:type ontology:Q2342494 } } } } }
action approx
action union
action find_reverse_tuple_counts
relation field of work
type sport
type common name
action find_reverse_tuple_counts
relation field of work
type sport
type collectable
action count
action filter_multi_types
action find_reverse
entity association football
relation field of work
type common name
type collectable
[[{'concept': 'common name'}, {'concept': 'collectable'}], 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?t ) AS ?a ) WHERE { { ?t property:field_of_work ?s . ?s rdf:type ontology:sport . ?t rdf:type ontology:collectable } UNION { ?s rdf:type ontology:sport . ?t rdf:type ontology:common_name . ?t property:field_of_work ?s } } GROUP BY ?s } . FILTER ( ?a = ?j ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { ?w property:field_of_work resource:association_football . { { ?w rdf:type ontology:common_name } UNION { ?w rdf:type ontology:collectable } } } } }
[]
sport common name collectable
Q31920 Q2736
SYSTEM
swimming, association football
Q31920 Q2736
(c(Q502895)|c(Q2342494),P101,c(Q349))
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q349
type Q502895
action find_reverse_tuple_counts
relation P101
type Q349
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q2736
relation P101
type Q502895
type Q2342494
[ANSWERS] are the area of around the same number of people or collectables as that sport
[[{'concept': 'Q502895'}, {'concept': 'Q2342494'}], 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?t ) AS ?a ) WHERE { { ?t property:P101 ?s . ?s rdf:type ontology:Q349 . ?t rdf:type ontology:Q2342494 } UNION { ?s rdf:type ontology:Q349 . ?t rdf:type ontology:Q502895 . ?t property:P101 ?s } } GROUP BY ?s } . FILTER ( ?a = ?j ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { ?w property:P101 resource:Q2736 . { { ?w rdf:type ontology:Q502895 } UNION { ?w rdf:type ontology:Q2342494 } } } } }
swimming association football
Swimming and association football are the area of around the same number of people or collectables as that sport
swimming association football
action approx
action union
action find_reverse_tuple_counts
relation field of work
type sport
type common name
action find_reverse_tuple_counts
relation field of work
type sport
type collectable
action count
action filter_multi_types
action find_reverse
entity association football
relation field of work
type common name
type collectable
[[{'concept': 'common name'}, {'concept': 'collectable'}], 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?t ) AS ?a ) WHERE { { ?t property:field_of_work ?s . ?s rdf:type ontology:sport . ?t rdf:type ontology:collectable } UNION { ?s rdf:type ontology:sport . ?t rdf:type ontology:common_name . ?t property:field_of_work ?s } } GROUP BY ?s } . FILTER ( ?a = ?j ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { ?w property:field_of_work resource:association_football . { { ?w rdf:type ontology:common_name } UNION { ?w rdf:type ontology:collectable } } } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q5436520
P641
Q811979
USER
Does Farum Rectory play those sports ?
(Q5436520,P641,Q31920) (Q5436520,P641,Q2736)
action is_in
entity prev_answer
action find
entity Q5436520
relation P641
['Q5436520', 'P641', 'Q31920'] ['Q5436520', 'P641', 'Q2736']
ASK WHERE { VALUES ( ?n ) { ( resource:Q31920 ) ( resource:Q2736 ) } . resource:Q5436520 property:P641 ?n }
Farum Rectory
action is_in
entity prev_answer
action find
entity Farum Rectory
relation sport
['Farum Rectory', 'sport', 'swimming'] ['Farum Rectory', 'sport', 'association football']
ASK WHERE { VALUES ( ?n ) { ( resource:swimming ) ( resource:association_football ) } . resource:Farum_Rectory property:sport ?n }
[]
architectural structure
SYSTEM
NO
(Q5436520,P641,Q31920) (Q5436520,P641,Q2736)
action is_in
entity prev_answer
action find
entity Q5436520
relation P641
[ANSWER]
['Q5436520', 'P641', 'Q31920'] ['Q5436520', 'P641', 'Q2736']
ASK WHERE { VALUES ( ?n ) { ( resource:Q31920 ) ( resource:Q2736 ) } . resource:Q5436520 property:P641 ?n }
No
action is_in
entity prev_answer
action find
entity Farum Rectory
relation sport
['Farum Rectory', 'sport', 'swimming'] ['Farum Rectory', 'sport', 'association football']
ASK WHERE { VALUES ( ?n ) { ( resource:swimming ) ( resource:association_football ) } . resource:Farum_Rectory property:sport ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q937857
P921
Q2342494
USER
Which collectables have association football player as their main topic ?
(c(Q2342494),P921,Q937857)
action filter_type
action find_reverse
entity Q937857
relation P921
type Q2342494
[{'concept': 'Q2342494'}, 'P921', 'Q937857']
SELECT DISTINCT ?j WHERE { ?j property:P921 resource:Q937857 . ?j rdf:type ontology:Q2342494 }
association football player
action filter_type
action find_reverse
entity association football player
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'association football player']
SELECT DISTINCT ?j WHERE { ?j property:main_subject resource:association_football_player . ?j rdf:type ontology:collectable }
[]
collectable
Q24787529 Q23730991 Q19845002
SYSTEM
The PFA footballers' who's who 2008-09, Timeless Bees: Brentford F.C. who's who 1920-2006, Citizens and minstermen : a who's who of York City FC, 1922-1997
Q24787529 Q23730991 Q19845002
(c(Q2342494),P921,Q937857)
action filter_type
action find_reverse
entity Q937857
relation P921
type Q2342494
[ANSWERS]
[{'concept': 'Q2342494'}, 'P921', 'Q937857']
SELECT DISTINCT ?j WHERE { ?j property:P921 resource:Q937857 . ?j rdf:type ontology:Q2342494 }
The PFA footballers' who's who 2008-09 Timeless Bees: Brentford F.C. who's who 1920-2006 Citizens and minstermen : a who's who of York City FC, 1922-1997
The PFA footballers' who's who 2008-09, Timeless Bees: Brentford F.C. who's who 1920-2006 and Citizens and minstermen : a who's who of York City FC, 1922-1997 have association football player as their main topic
The PFA footballers' who's who 2008-09 Timeless Bees: Brentford F.C. who's who 1920-2006 Citizens and minstermen : a who's who of York City FC, 1922-1997
action filter_type
action find_reverse
entity association football player
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'association football player']
SELECT DISTINCT ?j WHERE { ?j property:main_subject resource:association_football_player . ?j rdf:type ontology:collectable }
[]