Simple Question (Direct)
Simple Question
Q19571938
P106
Q12737077
USER
Which occupation is the profession of Andy Stirling ?
(Q19571938,P106,c(Q12737077))
action filter_type
action find
entity Q19571938
relation P106
type Q12737077
['Q19571938', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q19571938 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
Andy Stirling
action filter_type
action find
entity Andy Stirling
relation occupation
type occupation
['Andy Stirling', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Andy_Stirling property:occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q19571938,P106,c(Q12737077))
action filter_type
action find
entity Q19571938
relation P106
type Q12737077
Player [ANSWER] is the profession of Andy Stirling
['Q19571938', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q19571938 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
association football player
Player association football player is the profession of Andy Stirling
association football player
action filter_type
action find
entity Andy Stirling
relation occupation
type occupation
['Andy Stirling', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Andy_Stirling property:occupation ?i . ?i rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q937857
P800
Q502895
USER
Which person has that occupation as a notable work ?
(c(Q502895),P800,Q937857)
action filter_type
action find_reverse
entity Q937857
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q937857']
SELECT DISTINCT ?x WHERE { ?x property:P800 resource:Q937857 . ?x rdf:type ontology:Q502895 }
association football player
action filter_type
action find_reverse
entity association football player
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'association football player']
SELECT DISTINCT ?x WHERE { ?x property:notable_work resource:association_football_player . ?x rdf:type ontology:common_name }
[]
common name
Q23047441
SYSTEM
Hugh Morgan-Owen
Q23047441
(c(Q502895),P800,Q937857)
action filter_type
action find_reverse
entity Q937857
relation P800
type Q502895
[ANSWER] has that occupation as a notable work
[{'concept': 'Q502895'}, 'P800', 'Q937857']
SELECT DISTINCT ?x WHERE { ?x property:P800 resource:Q937857 . ?x rdf:type ontology:Q502895 }
Hugh Morgan-Owen
Hugh Morgan-Owen has that occupation as a notable work
Hugh Morgan-Owen
action filter_type
action find_reverse
entity association football player
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'association football player']
SELECT DISTINCT ?x WHERE { ?x property:notable_work resource:association_football_player . ?x rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19571938
P19
Q56061
USER
Which administrative territory was Andy Stirling born in ?
(Q19571938,P19,c(Q56061))
action filter_type
action find
entity Q19571938
relation P19
type Q56061
['Q19571938', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q56061 . resource:Q19571938 property:P19 ?c }
Andy Stirling
action filter_type
action find
entity Andy Stirling
relation place of birth
type administrative territorial entity
['Andy Stirling', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity . resource:Andy_Stirling property:place_of_birth ?c }
[]
administrative territorial entity
Q211870
SYSTEM
Paisley
Q211870
(Q19571938,P19,c(Q56061))
action filter_type
action find
entity Q19571938
relation P19
type Q56061
Andy Stirling was born in [ANSWER]
['Q19571938', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q56061 . resource:Q19571938 property:P19 ?c }
Paisley
Andy Stirling was born in Paisley
Paisley
action filter_type
action find
entity Andy Stirling
relation place of birth
type administrative territorial entity
['Andy Stirling', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity . resource:Andy_Stirling property:place_of_birth ?c }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11673081
Q56061
USER
And how about Shiho Takano?
(Q11673081,P19,c(Q56061))
action filter_type
action find
entity Q11673081
relation P19
type Q56061
['Q11673081', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q11673081 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Shiho Takano
action filter_type
action find
entity Shiho Takano
relation place of birth
type administrative territorial entity
['Shiho Takano', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Shiho_Takano property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1490
SYSTEM
Tokyo
Q1490
(Q11673081,P19,c(Q56061))
action filter_type
action find
entity Q11673081
relation P19
type Q56061
[ANSWER]
['Q11673081', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q11673081 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Tokyo
Tokyo
action filter_type
action find
entity Shiho Takano
relation place of birth
type administrative territorial entity
['Shiho Takano', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Shiho_Takano property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q100065
P417
Q502895 Q1445650 Q56061
USER
How many administrative territories have less number of people and holidays as their patron saint than Mirandola ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action count
action less
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q100065
relation P417
type Q502895
type Q1445650
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) ?a WHERE { { ?a property:P417 ?b . ?a rdf:type ontology:Q56061 . ?b rdf:type ontology:Q502895 } UNION { ?a property:P417 ?b . ?a rdf:type ontology:Q56061 . ?b rdf:type ontology:Q1445650 } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { resource:Q100065 property:P417 ?t . { VALUES ( ?z ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } . ?t rdf:type ?z } } } . FILTER ( ?c < ?g ) }
Mirandola
action count
action less
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Mirandola
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) ?a WHERE { { ?a property:patron_saint ?b . ?a rdf:type ontology:administrative_territorial_entity . ?b rdf:type ontology:common_name } UNION { ?a property:patron_saint ?b . ?a rdf:type ontology:administrative_territorial_entity . ?b rdf:type ontology:holiday } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { resource:Mirandola property:patron_saint ?t . { VALUES ( ?z ) { ( ontology:common_name ) ( ontology:holiday ) } . ?t rdf:type ?z } } } . FILTER ( ?c < ?g ) }
[]
common name holiday administrative territorial entity
SYSTEM
33
Q264716 Q12883498 Q54494 Q50057 Q117388 Q6221 Q46718 Q54119 Q81258 Q47074 Q59257 Q4361 Q2914723 Q100129 Q52547 Q116440 Q2284679 Q496890 Q297224 Q259039 Q54556 Q487786 Q100943 Q244193 Q1747381 Q492475 Q334577 Q39493 Q329984 Q47034 Q215080 Q270288 Q102820
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action count
action less
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q100065
relation P417
type Q502895
type Q1445650
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) ?a WHERE { { ?a property:P417 ?b . ?a rdf:type ontology:Q56061 . ?b rdf:type ontology:Q502895 } UNION { ?a property:P417 ?b . ?a rdf:type ontology:Q56061 . ?b rdf:type ontology:Q1445650 } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { resource:Q100065 property:P417 ?t . { VALUES ( ?z ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } . ?t rdf:type ?z } } } . FILTER ( ?c < ?g ) }
Carzano Pano Platres Belvedere di Spinello Cagnano Amiterno Strangolagalli Brescia Carrè San Pedro Padula Aielli Montefortino Curitiba Nemausus Calvenzano Campomaggiore Arpino General Alvear, Mendoza Balestrate Padergnone Giardinello Africo Orihuela Sorbolo Cagno Polykastro Valença Quetzaltenango Cantello Úbeda Espoo Machala Riccò del Golfo di Spezia Nibbiano
33
action count
action less
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Mirandola
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) ?a WHERE { { ?a property:patron_saint ?b . ?a rdf:type ontology:administrative_territorial_entity . ?b rdf:type ontology:common_name } UNION { ?a property:patron_saint ?b . ?a rdf:type ontology:administrative_territorial_entity . ?b rdf:type ontology:holiday } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { resource:Mirandola property:patron_saint ?t . { VALUES ( ?z ) { ( ontology:common_name ) ( ontology:holiday ) } . ?t rdf:type ?z } } } . FILTER ( ?c < ?g ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q937857
P921
Q2342494
USER
Which collectables have association football player as their principal topic ?
(c(Q2342494),P921,Q937857)
action filter_type
action find_reverse
entity Q937857
relation P921
type Q2342494
[{'concept': 'Q2342494'}, 'P921', 'Q937857']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q2342494 . ?o property:P921 resource:Q937857 }
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 ?o WHERE { ?o rdf:type ontology:collectable . ?o property:main_subject resource:association_football_player }
[]
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 ?o WHERE { ?o rdf:type ontology:Q2342494 . ?o property:P921 resource:Q937857 }
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 principal 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 ?o WHERE { ?o rdf:type ontology:collectable . ?o property:main_subject resource:association_football_player }
[]
Clarification
Simple Question|Single Entity|Indirect
Q23730991
P495
Q15617994
USER
Where did that collectable originate ?
(Q23730991,P495,c(Q15617994))
action filter_type
action find
entity Q23730991
relation P495
type Q15617994
['Q23730991', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q23730991 property:P495 ?k . ?k rdf:type ontology:Q15617994 }
Timeless Bees: Brentford F.C. who's who 1920-2006
action filter_type
action find
entity Timeless Bees: Brentford F.C. who's who 1920-2006
relation country of origin
type designation for an administrative territorial entity
["Timeless Bees: Brentford F.C. who's who 1920-2006", 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Timeless_Bees:_Brentford_F.C._who's_who_1920-2006 property:country_of_origin ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q19845002
SYSTEM
Did you mean Citizens and minstermen : a who's who of York City FC, 1922-1997 ?
Q24787529 Q23730991 Q19845002
(Q24787529,P495,c(Q15617994)) (Q23730991,P495,c(Q15617994)) (Q19845002,P495,c(Q15617994))
[ANSWER]
['Q24787529', 'P495', {'concept': 'Q15617994'}] ['Q23730991', 'P495', {'concept': 'Q15617994'}] ['Q19845002', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q23730991 property:P495 ?k . ?k rdf:type ontology:Q15617994 }
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
Did you mean Citizens and minstermen : a who's who of York City FC, 1922-1997 ?
Citizens and minstermen : a who's who of York City FC, 1922-1997
["The PFA footballers' who's who 2008-09", 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ["Timeless Bees: Brentford F.C. who's who 1920-2006", 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ["Citizens and minstermen : a who's who of York City FC, 1922-1997", 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Timeless_Bees:_Brentford_F.C._who's_who_1920-2006 property:country_of_origin ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Timeless Bees: Brentford F.C. who's who 1920-2006. Could you tell me the answer for that?
(Q23730991,P495,c(Q15617994))
Q23730991
['Q23730991', 'P495', {'concept': 'Q15617994'}]
["Timeless Bees: Brentford F.C. who's who 1920-2006", 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q145
SYSTEM
United Kingdom
Q145
(Q23730991,P495,c(Q15617994))
action filter_type
action find
entity Q23730991
relation P495
type Q15617994
That collectable originated in [ANSWER]
['Q23730991', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q23730991 property:P495 ?k . ?k rdf:type ontology:Q15617994 }
United Kingdom
That collectable originated in United Kingdom
United Kingdom
action filter_type
action find
entity Timeless Bees: Brentford F.C. who's who 1920-2006
relation country of origin
type designation for an administrative territorial entity
["Timeless Bees: Brentford F.C. who's who 1920-2006", 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Timeless_Bees:_Brentford_F.C._who's_who_1920-2006 property:country_of_origin ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic associations with max number of administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?b = ?f ) . { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?b ) WHERE { ?e rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 . ?e property:P530 ?g } GROUP BY ?e } . { SELECT DISTINCT ( MAX ( ?d ) AS ?f ) { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?d ) WHERE { ?i property:P530 ?q . ?i rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 } GROUP BY ?i } } }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?b = ?f ) . { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?b ) WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:diplomatic_relation ?g } GROUP BY ?e } . { SELECT DISTINCT ( MAX ( ?d ) AS ?f ) { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?d ) WHERE { ?i property:diplomatic_relation ?q . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230
SYSTEM
Georgia
Q230
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWER] have diplomatic associations with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?b = ?f ) . { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?b ) WHERE { ?e rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 . ?e property:P530 ?g } GROUP BY ?e } . { SELECT DISTINCT ( MAX ( ?d ) AS ?f ) { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?d ) WHERE { ?i property:P530 ?q . ?i rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 } GROUP BY ?i } } }
Georgia
Georgia have diplomatic associations with max number of administrative territories
Georgia
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?b = ?f ) . { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?b ) WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:diplomatic_relation ?g } GROUP BY ?e } . { SELECT DISTINCT ( MAX ( ?d ) AS ?f ) { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?d ) WHERE { ?i property:diplomatic_relation ?q . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } } }
[]