Simple Question (Direct)
Simple Question
Q6536837
P19
Q56061
USER
Which administrative territory is the birthplace of Lewis Macleod ?
(Q6536837,P19,c(Q56061))
action filter_type
action find
entity Q6536837
relation P19
type Q56061
['Q6536837', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . resource:Q6536837 property:P19 ?z }
Lewis Macleod
action filter_type
action find
entity Lewis Macleod
relation place of birth
type administrative territorial entity
['Lewis Macleod', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:Lewis_Macleod property:place_of_birth ?z }
[]
administrative territorial entity
Q2305226
SYSTEM
Wishaw
Q2305226
(Q6536837,P19,c(Q56061))
action filter_type
action find
entity Q6536837
relation P19
type Q56061
Of [ANSWER] is the birthplace of Lewis Macleod
['Q6536837', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . resource:Q6536837 property:P19 ?z }
Wishaw
Of Wishaw is the birthplace of Lewis Macleod
Wishaw
action filter_type
action find
entity Lewis Macleod
relation place of birth
type administrative territorial entity
['Lewis Macleod', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:Lewis_Macleod property:place_of_birth ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6536837
P1038
Q502895
USER
Who is related to Lewis Macleod ?
(c(Q502895),P1038,Q6536837)
action filter_type
action find
entity Q6536837
relation P1038
type Q502895
[{'concept': 'Q502895'}, 'P1038', 'Q6536837']
SELECT DISTINCT ?m WHERE { resource:Q6536837 property:P1038 ?m . ?m rdf:type ontology:Q502895 }
Lewis Macleod
action filter_type
action find
entity Lewis Macleod
relation relative
type common name
[{'concept': 'common name'}, 'relative', 'Lewis Macleod']
SELECT DISTINCT ?m WHERE { resource:Lewis_Macleod property:relative ?m . ?m rdf:type ontology:common_name }
[]
common name
Q5237339
SYSTEM
David McEwan
Q5237339
(c(Q502895),P1038,Q6536837)
action filter_type
action find
entity Q6536837
relation P1038
type Q502895
[ANSWER] is related to Lewis Macleod
[{'concept': 'Q502895'}, 'P1038', 'Q6536837']
SELECT DISTINCT ?m WHERE { resource:Q6536837 property:P1038 ?m . ?m rdf:type ontology:Q502895 }
David McEwan
David McEwan is related to Lewis Macleod
David McEwan
action filter_type
action find
entity Lewis Macleod
relation relative
type common name
[{'concept': 'common name'}, 'relative', 'Lewis Macleod']
SELECT DISTINCT ?m WHERE { resource:Lewis_Macleod property:relative ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5237339
P641
Q349
USER
Which sport was that person a part of ?
(Q5237339,P641,c(Q349))
action filter_type
action find
entity Q5237339
relation P641
type Q349
['Q5237339', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q349 . resource:Q5237339 property:P641 ?s }
David McEwan
action filter_type
action find
entity David McEwan
relation sport
type sport
['David McEwan', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:sport . resource:David_McEwan property:sport ?s }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q5237339,P641,c(Q349))
action filter_type
action find
entity Q5237339
relation P641
type Q349
Football [ANSWER] was that person a part of
['Q5237339', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q349 . resource:Q5237339 property:P641 ?s }
association football
Football association football was that person a part of
association football
action filter_type
action find
entity David McEwan
relation sport
type sport
['David McEwan', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:sport . resource:David_McEwan property:sport ?s }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7322923 Q6536837
P106
Q12737077
USER
Which occupations are the professions of Lewis Macleod or Riccardo Paciocco ?
OR((Q6536837,P106,c(Q12737077)), (Q7322923,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q6536837
relation P106
action find
entity Q7322923
relation P106
type Q12737077
{'OR': [['Q6536837', 'P106', {'concept': 'Q12737077'}], ['Q7322923', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?h WHERE { { ?k property:P106 ?h . VALUES ( ?k ) { ( resource:Q6536837 ) ( resource:Q7322923 ) } } . ?h rdf:type ontology:Q12737077 }
Riccardo Paciocco Lewis Macleod
action filter_type
action union
action find
entity Lewis Macleod
relation occupation
action find
entity Riccardo Paciocco
relation occupation
type occupation
{'OR': [['Lewis Macleod', 'occupation', {'concept': 'occupation'}], ['Riccardo Paciocco', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?h WHERE { { ?k property:occupation ?h . VALUES ( ?k ) { ( resource:Lewis_Macleod ) ( resource:Riccardo_Paciocco ) } } . ?h rdf:type ontology:occupation }
[]
occupation
Q628099 Q937857
SYSTEM
association football manager, association football player
Q628099 Q937857
OR((Q6536837,P106,c(Q12737077)), (Q7322923,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q6536837
relation P106
action find
entity Q7322923
relation P106
type Q12737077
Player [ANSWERS] are the professions of Lewis Macleod or Riccardo Paciocco
{'OR': [['Q6536837', 'P106', {'concept': 'Q12737077'}], ['Q7322923', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?h WHERE { { ?k property:P106 ?h . VALUES ( ?k ) { ( resource:Q6536837 ) ( resource:Q7322923 ) } } . ?h rdf:type ontology:Q12737077 }
association football manager association football player
Player association football manager and association football player are the professions of Lewis Macleod or Riccardo Paciocco
association football manager association football player
action filter_type
action union
action find
entity Lewis Macleod
relation occupation
action find
entity Riccardo Paciocco
relation occupation
type occupation
{'OR': [['Lewis Macleod', 'occupation', {'concept': 'occupation'}], ['Riccardo Paciocco', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?h WHERE { { ?k property:occupation ?h . VALUES ( ?k ) { ( resource:Lewis_Macleod ) ( resource:Riccardo_Paciocco ) } } . ?h rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q192816
P417
Q502895 Q12737077
USER
Which people are the patron saints of around the same number of occupations as Saint Barbara ?
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q192816
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?w ) AS ?y ) WHERE { ?w property:P417 ?v . ?v rdf:type ontology:Q502895 . ?w rdf:type ontology:Q12737077 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { ?r rdf:type ontology:Q502895 . resource:Q192816 property:P417 ?r } } . FILTER ( ?y = ?j ) }
Saint Barbara
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Saint Barbara
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?w ) AS ?y ) WHERE { ?w property:patron_saint ?v . ?v rdf:type ontology:common_name . ?w rdf:type ontology:occupation } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { ?r rdf:type ontology:common_name . resource:Saint_Barbara property:patron_saint ?r } } . FILTER ( ?y = ?j ) }
[]
common name occupation
Q128538 Q192816 Q200895
SYSTEM
Luke the Evangelist, Saint Barbara, Agatha of Sicily
Q128538 Q192816 Q200895
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q192816
relation P417
type Q502895
[ANSWERS] are the patron saints of around the same number of occupations as Saint Barbara
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?w ) AS ?y ) WHERE { ?w property:P417 ?v . ?v rdf:type ontology:Q502895 . ?w rdf:type ontology:Q12737077 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { ?r rdf:type ontology:Q502895 . resource:Q192816 property:P417 ?r } } . FILTER ( ?y = ?j ) }
Luke the Evangelist Saint Barbara Agatha of Sicily
Luke the Evangelist, Saint Barbara and Agatha of Sicily are the patron saints of around the same number of occupations as Saint Barbara
Luke the Evangelist Saint Barbara Agatha of Sicily
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Saint Barbara
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?w ) AS ?y ) WHERE { ?w property:patron_saint ?v . ?v rdf:type ontology:common_name . ?w rdf:type ontology:occupation } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { ?r rdf:type ontology:common_name . resource:Saint_Barbara property:patron_saint ?r } } . FILTER ( ?y = ?j ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q21064629 Q5237339
P27
Q15617994
USER
Which administrative territories are David McEwan or Rocío Velázquez a civilian of ?
OR((Q5237339,P27,c(Q15617994)), (Q21064629,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5237339
relation P27
action find
entity Q21064629
relation P27
type Q15617994
{'OR': [['Q5237339', 'P27', {'concept': 'Q15617994'}], ['Q21064629', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q5237339 property:P27 ?l } UNION { resource:Q21064629 property:P27 ?l } } . ?l rdf:type ontology:Q15617994 }
Rocío Velázquez David McEwan
action filter_type
action union
action find
entity David McEwan
relation country of citizenship
action find
entity Rocío Velázquez
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['David McEwan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Rocío Velázquez', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:David_McEwan property:country_of_citizenship ?l } UNION { resource:Rocío_Velázquez property:country_of_citizenship ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q145
SYSTEM
Spain, United Kingdom
Q29 Q145
OR((Q5237339,P27,c(Q15617994)), (Q21064629,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5237339
relation P27
action find
entity Q21064629
relation P27
type Q15617994
[ANSWERS] are David McEwan or Rocío Velázquez a civilian of
{'OR': [['Q5237339', 'P27', {'concept': 'Q15617994'}], ['Q21064629', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q5237339 property:P27 ?l } UNION { resource:Q21064629 property:P27 ?l } } . ?l rdf:type ontology:Q15617994 }
Spain United Kingdom
Spain and United Kingdom are David McEwan or Rocío Velázquez a civilian of
Spain United Kingdom
action filter_type
action union
action find
entity David McEwan
relation country of citizenship
action find
entity Rocío Velázquez
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['David McEwan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Rocío Velázquez', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:David_McEwan property:country_of_citizenship ?l } UNION { resource:Rocío_Velázquez property:country_of_citizenship ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21064629
P21
Q290
USER
Which sex does Rocío Velázquez belong to ?
(Q29,P21,c(Q290)) (Q145,P21,c(Q290))
action filter_type
action find
entity Q21064629
relation P21
type Q290
['Q29', 'P21', {'concept': 'Q290'}] ['Q145', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q21064629 property:P21 ?i . ?i rdf:type ontology:Q290 }
Rocío Velázquez
action filter_type
action find
entity Rocío Velázquez
relation gender
type sex
['Spain', 'gender', {'concept': 'sex'}] ['United Kingdom', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Rocío_Velázquez property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q29,P21,c(Q290)) (Q145,P21,c(Q290))
action filter_type
action find
entity Q21064629
relation P21
type Q290
Rocío Velázquez belongs to [ANSWER]
['Q29', 'P21', {'concept': 'Q290'}] ['Q145', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q21064629 property:P21 ?i . ?i rdf:type ontology:Q290 }
female
Rocío Velázquez belongs to female
female
action filter_type
action find
entity Rocío Velázquez
relation gender
type sex
['Spain', 'gender', {'concept': 'sex'}] ['United Kingdom', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Rocío_Velázquez property:gender ?i . ?i rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P710
Q1190554
USER
What event were United Kingdom a participant of ?
(c(Q1190554),P710,Q145)
action filter_type
action find_reverse
entity Q145
relation P710
type Q1190554
[{'concept': 'Q1190554'}, 'P710', 'Q145']
SELECT DISTINCT ?w WHERE { ?w property:P710 resource:Q145 . ?w rdf:type ontology:Q1190554 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation participant
type event
[{'concept': 'event'}, 'participant', 'United Kingdom']
SELECT DISTINCT ?w WHERE { ?w property:participant resource:United_Kingdom . ?w rdf:type ontology:event }
[]
event
Q218678 Q16470 Q1130507
SYSTEM
North African Campaign, Normandy landings, Hundred Days Offensive
Q4872830 Q4582489 Q2888122 Q1320675 Q4871802 Q4871801 Q13435464 Q3636553 Q1130507 Q218678 Q24467647 Q1402530 Q714223 Q838704 Q2237268 Q856168 Q8342069 Q171416 Q755955 Q4685618 Q16470 Q4872743 Q654374 Q376154 Q4930640 Q7510253 Q41894 Q3636355 Q3636251
(c(Q1190554),P710,Q145)
action filter_type
action find_reverse
entity Q145
relation P710
type Q1190554
[ANSWERS]
[{'concept': 'Q1190554'}, 'P710', 'Q145']
SELECT DISTINCT ?w WHERE { ?w property:P710 resource:Q145 . ?w rdf:type ontology:Q1190554 }
Battle of the Argenta Gap Battle of Mount Tumbledown Battle of Basra Battle of Havrincourt Battle of Mount Longdon Battle of Mount Harriet Invasion of Luxembourg Battle of Norfolk Hundred Days Offensive North African Campaign 2016 Sirte offensive Battle of 73 Easting Battle for Brest Battle of Durazzo Battle of Umm Qasr Pastry War Fisheries Case Battle of Trafalgar Battle of Copenhagen Adriatic Campaign of World War II Normandy landings Battle of Wireless Ridge Battle of Cambrai Battle of Copenhagen Bluff Cove Air Attacks Siege of Musa Qala Battle of New Orleans Battle of Broodseinde Battle of Wadi Al-Batin
What event were United Kingdom a participant of
North African Campaign Normandy landings Hundred Days Offensive
action filter_type
action find_reverse
entity United Kingdom
relation participant
type event
[{'concept': 'event'}, 'participant', 'United Kingdom']
SELECT DISTINCT ?w WHERE { ?w property:participant resource:United_Kingdom . ?w rdf:type ontology:event }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P38
Q8142
USER
What is the currency of United Kingdom ?
(Q145,P38,c(Q8142))
action filter_type
action find
entity Q145
relation P38
type Q8142
['Q145', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?f WHERE { resource:Q145 property:P38 ?f . ?f rdf:type ontology:Q8142 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation currency
type currency
['United Kingdom', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?f WHERE { resource:United_Kingdom property:currency ?f . ?f rdf:type ontology:currency }
[]
currency
Q25224
SYSTEM
pound sterling
Q25224
(Q145,P38,c(Q8142))
action filter_type
action find
entity Q145
relation P38
type Q8142
The currency of United Kingdom is the [ANSWER]
['Q145', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?f WHERE { resource:Q145 property:P38 ?f . ?f rdf:type ontology:Q8142 }
pound sterling
The currency of United Kingdom is the pound sterling
pound sterling
action filter_type
action find
entity United Kingdom
relation currency
type currency
['United Kingdom', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?f WHERE { resource:United_Kingdom property:currency ?f . ?f rdf:type ontology:currency }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2340665
Q8142
USER
And how about Basutoland?
(Q2340665,P38,c(Q8142))
action filter_type
action find
entity Q2340665
relation P38
type Q8142
['Q2340665', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?p WHERE { resource:Q2340665 property:P38 ?p . ?p rdf:type ontology:Q8142 }
Basutoland
action filter_type
action find
entity Basutoland
relation currency
type currency
['Basutoland', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?p WHERE { resource:Basutoland property:currency ?p . ?p rdf:type ontology:currency }
[]
currency
Q25224
SYSTEM
pound sterling
Q25224
(Q2340665,P38,c(Q8142))
action filter_type
action find
entity Q2340665
relation P38
type Q8142
[ANSWER]
['Q2340665', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?p WHERE { resource:Q2340665 property:P38 ?p . ?p rdf:type ontology:Q8142 }
pound sterling
pound sterling
action filter_type
action find
entity Basutoland
relation currency
type currency
['Basutoland', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?p WHERE { resource:Basutoland property:currency ?p . ?p rdf:type ontology:currency }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2340665
P1376
Q56061
USER
Which administrative territory is center of administration for that state ?
(c(Q56061),P1376,Q25224)
action filter_type
action find_reverse
entity Q2340665
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q25224']
SELECT DISTINCT ?t WHERE { ?t property:P1376 resource:Q2340665 . ?t rdf:type ontology:Q56061 }
Basutoland
action filter_type
action find_reverse
entity Basutoland
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'pound sterling']
SELECT DISTINCT ?t WHERE { ?t property:capital_of resource:Basutoland . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3909
SYSTEM
Maseru
Q3909
(c(Q56061),P1376,Q25224)
action filter_type
action find_reverse
entity Q2340665
relation P1376
type Q56061
[ANSWER] is center of administration for that state
[{'concept': 'Q56061'}, 'P1376', 'Q25224']
SELECT DISTINCT ?t WHERE { ?t property:P1376 resource:Q2340665 . ?t rdf:type ontology:Q56061 }
Maseru
Maseru is center of administration for that state
Maseru
action filter_type
action find_reverse
entity Basutoland
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'pound sterling']
SELECT DISTINCT ?t WHERE { ?t property:capital_of resource:Basutoland . ?t rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q3909 Q3104
P190
Q515
USER
Is Koblenz twin city of Maseru ?
(Q3909,P190,Q3104)
action is_in
entity Q3104
action find
entity Q3909
relation P190
['Q3909', 'P190', 'Q3104']
ASK WHERE { resource:Q3909 property:P190 resource:Q3104 }
Maseru Koblenz
action is_in
entity Koblenz
action find
entity Maseru
relation sister city
['Maseru', 'sister city', 'Koblenz']
ASK WHERE { resource:Maseru property:sister_city resource:Koblenz }
[]
city
SYSTEM
YES
(Q3909,P190,Q3104)
action is_in
entity Q3104
action find
entity Q3909
relation P190
[ANSWER]
['Q3909', 'P190', 'Q3104']
ASK WHERE { resource:Q3909 property:P190 resource:Q3104 }
Yes
action is_in
entity Koblenz
action find
entity Maseru
relation sister city
['Maseru', 'sister city', 'Koblenz']
ASK WHERE { resource:Maseru property:sister_city resource:Koblenz }
[]