Simple Question (Direct)
Simple Question
Q3181828
P19
Q56061
USER
Which administrative territory is the birthplace of John Jeffrey ?
(Q3181828,P19,c(Q56061))
action filter_type
action find
entity Q3181828
relation P19
type Q56061
['Q3181828', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q3181828 property:P19 ?b . ?b rdf:type ontology:Q56061 }
John Jeffrey
action filter_type
action find
entity John Jeffrey
relation place of birth
type administrative territorial entity
['John Jeffrey', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:John_Jeffrey property:place_of_birth ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q654945
SYSTEM
Kelso
Q654945
(Q3181828,P19,c(Q56061))
action filter_type
action find
entity Q3181828
relation P19
type Q56061
[ANSWER] is the birthplace of John Jeffrey
['Q3181828', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q3181828 property:P19 ?b . ?b rdf:type ontology:Q56061 }
Kelso
Kelso is the birthplace of John Jeffrey
Kelso
action filter_type
action find
entity John Jeffrey
relation place of birth
type administrative territorial entity
['John Jeffrey', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:John_Jeffrey property:place_of_birth ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3181828
P54
Q12973014
USER
Which sports teams are John Jeffrey a member of ?
(Q3181828,P54,c(Q12973014))
action filter_type
action find
entity Q3181828
relation P54
type Q12973014
['Q3181828', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?o WHERE { resource:Q3181828 property:P54 ?o . ?o rdf:type ontology:Q12973014 }
John Jeffrey
action filter_type
action find
entity John Jeffrey
relation member of sports team
type sports team
['John Jeffrey', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?o WHERE { resource:John_Jeffrey property:member_of_sports_team ?o . ?o rdf:type ontology:sports_team }
[]
sports team
Q3194941 Q945016
SYSTEM
Kelso RFC, Scotland national rugby union team
Q3194941 Q945016
(Q3181828,P54,c(Q12973014))
action filter_type
action find
entity Q3181828
relation P54
type Q12973014
[ANSWERS] are John Jeffrey a member of
['Q3181828', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?o WHERE { resource:Q3181828 property:P54 ?o . ?o rdf:type ontology:Q12973014 }
Kelso RFC Scotland national rugby union team
Kelso RFC and Scotland national rugby union team are John Jeffrey a member of
Kelso RFC Scotland national rugby union team
action filter_type
action find
entity John Jeffrey
relation member of sports team
type sports team
['John Jeffrey', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?o WHERE { resource:John_Jeffrey property:member_of_sports_team ?o . ?o rdf:type ontology:sports_team }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3181828
P106
Q12737077
USER
Which occupation is the profession of John Jeffrey ?
(Q3181828,P106,c(Q12737077))
action filter_type
action find
entity Q3181828
relation P106
type Q12737077
['Q3181828', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q3181828 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
John Jeffrey
action filter_type
action find
entity John Jeffrey
relation occupation
type occupation
['John Jeffrey', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:John_Jeffrey property:occupation ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q14089670
SYSTEM
rugby union player
Q14089670
(Q3181828,P106,c(Q12737077))
action filter_type
action find
entity Q3181828
relation P106
type Q12737077
The [ANSWER] is the profession of John Jeffrey
['Q3181828', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q3181828 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
rugby union player
The rugby union player is the profession of John Jeffrey
rugby union player
action filter_type
action find
entity John Jeffrey
relation occupation
type occupation
['John Jeffrey', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:John_Jeffrey property:occupation ?x . ?x rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3181828
P27
Q15617994
USER
Which administrative territory is John Jeffrey an inhabitant of ?
(Q3181828,P27,c(Q15617994))
action filter_type
action find
entity Q3181828
relation P27
type Q15617994
['Q3181828', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q3181828 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
John Jeffrey
action filter_type
action find
entity John Jeffrey
relation country of citizenship
type designation for an administrative territorial entity
['John Jeffrey', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:John_Jeffrey property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q3181828,P27,c(Q15617994))
action filter_type
action find
entity Q3181828
relation P27
type Q15617994
[ANSWER] is John Jeffrey an inhabitant of
['Q3181828', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q3181828 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is John Jeffrey an inhabitant of
United Kingdom
action filter_type
action find
entity John Jeffrey
relation country of citizenship
type designation for an administrative territorial entity
['John Jeffrey', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:John_Jeffrey property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3181828
P21
Q290
USER
Which sex does that person belong to ?
(Q145,P21,c(Q290))
action filter_type
action find
entity Q3181828
relation P21
type Q290
['Q145', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q290 . resource:Q3181828 property:P21 ?e }
John Jeffrey
action filter_type
action find
entity John Jeffrey
relation gender
type sex
['United Kingdom', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:sex . resource:John_Jeffrey property:gender ?e }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q145,P21,c(Q290))
action filter_type
action find
entity Q3181828
relation P21
type Q290
That person belongs to [ANSWER]
['Q145', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q290 . resource:Q3181828 property:P21 ?e }
male
That person belongs to male
male
action filter_type
action find
entity John Jeffrey
relation gender
type sex
['United Kingdom', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:sex . resource:John_Jeffrey property:gender ?e }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q739613
P115
Q811979 Q1076486 Q12973014
USER
How many sports teams have more number of architectural structures or sports venues as their home field than Edinburgh Rugby ?
(c(Q12973014),P115,c(Q811979)|c(Q1076486))
action count
action greater
action union
action find_tuple_counts
relation P115
type Q12973014
type Q811979
action find_tuple_counts
relation P115
type Q12973014
type Q1076486
action count
action filter_multi_types
action find
entity Q739613
relation P115
type Q811979
type Q1076486
[{'concept': 'Q12973014'}, 'P115', [{'concept': 'Q811979'}, {'concept': 'Q1076486'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { { { ?w rdf:type ontology:Q811979 } UNION { ?w rdf:type ontology:Q1076486 } } . resource:Q739613 property:P115 ?w } } . FILTER ( ?m > ?f ) . { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?m ) WHERE { { ?q property:P115 ?i . ?q rdf:type ontology:Q12973014 . ?i rdf:type ontology:Q811979 } UNION { ?q property:P115 ?i . ?q rdf:type ontology:Q12973014 . ?i rdf:type ontology:Q1076486 } } GROUP BY ?q } }
Edinburgh Rugby
action count
action greater
action union
action find_tuple_counts
relation home venue
type sports team
type architectural structure
action find_tuple_counts
relation home venue
type sports team
type sports venue
action count
action filter_multi_types
action find
entity Edinburgh Rugby
relation home venue
type architectural structure
type sports venue
[{'concept': 'sports team'}, 'home venue', [{'concept': 'architectural structure'}, {'concept': 'sports venue'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { { { ?w rdf:type ontology:architectural_structure } UNION { ?w rdf:type ontology:sports_venue } } . resource:Edinburgh_Rugby property:home_venue ?w } } . FILTER ( ?m > ?f ) . { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?m ) WHERE { { ?q property:home_venue ?i . ?q rdf:type ontology:sports_team . ?i rdf:type ontology:architectural_structure } UNION { ?q property:home_venue ?i . ?q rdf:type ontology:sports_team . ?i rdf:type ontology:sports_venue } } GROUP BY ?q } }
[]
architectural structure sports venue sports team
SYSTEM
26
Q166105 Q247577 Q1328038 Q796358 Q193643 Q604879 Q1375077 Q129164 Q461595 Q484151 Q974277 Q1148233 Q325819 Q1194023 Q194116 Q161345 Q3259700 Q1069384 Q653772 Q205973 Q209961 Q650816 Q5461416 Q538747 Q2825666 Q1727656
(c(Q12973014),P115,c(Q811979)|c(Q1076486))
action count
action greater
action union
action find_tuple_counts
relation P115
type Q12973014
type Q811979
action find_tuple_counts
relation P115
type Q12973014
type Q1076486
action count
action filter_multi_types
action find
entity Q739613
relation P115
type Q811979
type Q1076486
[ANSWER]
[{'concept': 'Q12973014'}, 'P115', [{'concept': 'Q811979'}, {'concept': 'Q1076486'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { { { ?w rdf:type ontology:Q811979 } UNION { ?w rdf:type ontology:Q1076486 } } . resource:Q739613 property:P115 ?w } } . FILTER ( ?m > ?f ) . { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?m ) WHERE { { ?q property:P115 ?i . ?q rdf:type ontology:Q12973014 . ?i rdf:type ontology:Q811979 } UNION { ?q property:P115 ?i . ?q rdf:type ontology:Q12973014 . ?i rdf:type ontology:Q1076486 } } GROUP BY ?q } }
Sacramento Kings Hiroshima Toyo Carp Orix Buffaloes Chicago Sky Pittsburgh Penguins Minnesota Twins Tohoku Rakuten Golden Eagles Fukuoka SoftBank Hawks Atlanta Braves Chiba Lotte Marines Hokkaido Nippon-Ham Fighters Montreal Expos Saitama Seibu Lions Yokohama DeNA BayStars Detroit Red Wings Houston Rockets Los Angeles Angels Osaka Kintetsu Buffaloes Pittsburgh Pirates Edmonton Oilers Chunichi Dragons Baltimore Orioles Florida Gators track and field Scarlets Akron RubberDucks New York Golden Blades
26
action count
action greater
action union
action find_tuple_counts
relation home venue
type sports team
type architectural structure
action find_tuple_counts
relation home venue
type sports team
type sports venue
action count
action filter_multi_types
action find
entity Edinburgh Rugby
relation home venue
type architectural structure
type sports venue
[{'concept': 'sports team'}, 'home venue', [{'concept': 'architectural structure'}, {'concept': 'sports venue'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { { { ?w rdf:type ontology:architectural_structure } UNION { ?w rdf:type ontology:sports_venue } } . resource:Edinburgh_Rugby property:home_venue ?w } } . FILTER ( ?m > ?f ) . { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?m ) WHERE { { ?q property:home_venue ?i . ?q rdf:type ontology:sports_team . ?i rdf:type ontology:architectural_structure } UNION { ?q property:home_venue ?i . ?q rdf:type ontology:sports_team . ?i rdf:type ontology:sports_venue } } GROUP BY ?q } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P840
Q15617994 Q15416 Q838948
USER
Which administrative territories are the narrative locations of max number of television programs and works of art ?
(c(Q15416)|c(Q838948),P840,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) ?w WHERE { VALUES ( ?e ) { ( ontology:Q838948 ) ( ontology:Q15416 ) } . ?r rdf:type ?e } GROUP BY ?w } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) ?t WHERE { { ?j property:P840 ?t . ?j rdf:type ontology:Q838948 . ?t rdf:type ontology:Q15617994 } UNION { ?t rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15416 . ?j property:P840 ?t } } GROUP BY ?t } . FILTER ( ?c = ?u ) }
action argmax
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) ?w WHERE { VALUES ( ?e ) { ( ontology:work_of_art ) ( ontology:television_program ) } . ?r rdf:type ?e } GROUP BY ?w } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) ?t WHERE { { ?j property:narrative_location ?t . ?j rdf:type ontology:work_of_art . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:television_program . ?j property:narrative_location ?t } } GROUP BY ?t } . FILTER ( ?c = ?u ) }
[]
designation for an administrative territorial entity television program work of art
Q38
SYSTEM
Italy
Q38
(c(Q15416)|c(Q838948),P840,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
[ANSWER] is the narrative locations of max number of television programs and works of art
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) ?w WHERE { VALUES ( ?e ) { ( ontology:Q838948 ) ( ontology:Q15416 ) } . ?r rdf:type ?e } GROUP BY ?w } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) ?t WHERE { { ?j property:P840 ?t . ?j rdf:type ontology:Q838948 . ?t rdf:type ontology:Q15617994 } UNION { ?t rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15416 . ?j property:P840 ?t } } GROUP BY ?t } . FILTER ( ?c = ?u ) }
Italy
Italy is the narrative locations of max number of television programs and works of art
Italy
action argmax
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) ?w WHERE { VALUES ( ?e ) { ( ontology:work_of_art ) ( ontology:television_program ) } . ?r rdf:type ?e } GROUP BY ?w } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) ?t WHERE { { ?j property:narrative_location ?t . ?j rdf:type ontology:work_of_art . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:television_program . ?j property:narrative_location ?t } } GROUP BY ?t } . FILTER ( ?c = ?u ) }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q38 Q39895
P530
Q15617994
USER
Does Clivio have diplomatic relationships with Italy ?
(Q38,P530,Q39895)
action is_in
entity Q39895
action find
entity Q38
relation P530
['Q38', 'P530', 'Q39895']
ASK WHERE { resource:Q38 property:P530 resource:Q39895 }
Italy Clivio
action is_in
entity Clivio
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Clivio']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Clivio }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q38,P530,Q39895)
action is_in
entity Q39895
action find
entity Q38
relation P530
[ANSWER]
['Q38', 'P530', 'Q39895']
ASK WHERE { resource:Q38 property:P530 resource:Q39895 }
No
action is_in
entity Clivio
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Clivio']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Clivio }
[]