Simple Question (Direct)
Simple Question
Q928815
P106
Q12737077
USER
What is the profession of Leo Komarov ?
(Q928815,P106,c(Q12737077))
action filter_type
action find
entity Q928815
relation P106
type Q12737077
['Q928815', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . resource:Q928815 property:P106 ?s }
Leo Komarov
action filter_type
action find
entity Leo Komarov
relation occupation
type occupation
['Leo Komarov', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . resource:Leo_Komarov property:occupation ?s }
[]
occupation
Q11774891
SYSTEM
ice hockey player
Q11774891
(Q928815,P106,c(Q12737077))
action filter_type
action find
entity Q928815
relation P106
type Q12737077
The profession of Leo Komarov is an [ANSWER]
['Q928815', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . resource:Q928815 property:P106 ?s }
ice hockey player
The profession of Leo Komarov is an ice hockey player
ice hockey player
action filter_type
action find
entity Leo Komarov
relation occupation
type occupation
['Leo Komarov', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . resource:Leo_Komarov property:occupation ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q928815
P1344
Q15900616
USER
Which event sequence did Leo Komarov take part in ?
(Q928815,P1344,c(Q15900616))
action filter_type
action find
entity Q928815
relation P1344
type Q15900616
['Q928815', 'P1344', {'concept': 'Q15900616'}]
SELECT DISTINCT ?y WHERE { resource:Q928815 property:P1344 ?y . ?y rdf:type ontology:Q15900616 }
Leo Komarov
action filter_type
action find
entity Leo Komarov
relation participant of
type event sequence
['Leo Komarov', 'participant of', {'concept': 'event sequence'}]
SELECT DISTINCT ?y WHERE { resource:Leo_Komarov property:participant_of ?y . ?y rdf:type ontology:event_sequence }
[]
event sequence
Q9678
SYSTEM
2014 Winter Olympics
Q9678
(Q928815,P1344,c(Q15900616))
action filter_type
action find
entity Q928815
relation P1344
type Q15900616
Leo Komarov took in the [ANSWER] part
['Q928815', 'P1344', {'concept': 'Q15900616'}]
SELECT DISTINCT ?y WHERE { resource:Q928815 property:P1344 ?y . ?y rdf:type ontology:Q15900616 }
2014 Winter Olympics
Leo Komarov took in the 2014 Winter Olympics part
2014 Winter Olympics
action filter_type
action find
entity Leo Komarov
relation participant of
type event sequence
['Leo Komarov', 'participant of', {'concept': 'event sequence'}]
SELECT DISTINCT ?y WHERE { resource:Leo_Komarov property:participant_of ?y . ?y rdf:type ontology:event_sequence }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q928815
P54
Q12973014
USER
Which sports teams are Leo Komarov a member of ?
(Q928815,P54,c(Q12973014))
action filter_type
action find
entity Q928815
relation P54
type Q12973014
['Q928815', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?w WHERE { resource:Q928815 property:P54 ?w . ?w rdf:type ontology:Q12973014 }
Leo Komarov
action filter_type
action find
entity Leo Komarov
relation member of sports team
type sports team
['Leo Komarov', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?w WHERE { resource:Leo_Komarov property:member_of_sports_team ?w . ?w rdf:type ontology:sports_team }
[]
sports team
Q1160302 Q203384
SYSTEM
HC Dynamo Moscow, Toronto Maple Leafs
Q1160302 Q203384
(Q928815,P54,c(Q12973014))
action filter_type
action find
entity Q928815
relation P54
type Q12973014
The [ANSWERS] are Leo Komarov a member of
['Q928815', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?w WHERE { resource:Q928815 property:P54 ?w . ?w rdf:type ontology:Q12973014 }
HC Dynamo Moscow Toronto Maple Leafs
The HC Dynamo Moscow and Toronto Maple Leafs are Leo Komarov a member of
HC Dynamo Moscow Toronto Maple Leafs
action filter_type
action find
entity Leo Komarov
relation member of sports team
type sports team
['Leo Komarov', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?w WHERE { resource:Leo_Komarov property:member_of_sports_team ?w . ?w rdf:type ontology:sports_team }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1160302
P641
Q349
USER
Which sport was that sports team a part of ?
(Q1160302,P641,c(Q349))
action filter_type
action find
entity Q1160302
relation P641
type Q349
['Q1160302', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q1160302 property:P641 ?f . ?f rdf:type ontology:Q349 }
HC Dynamo Moscow
action filter_type
action find
entity HC Dynamo Moscow
relation sport
type sport
['HC Dynamo Moscow', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:HC_Dynamo_Moscow property:sport ?f . ?f rdf:type ontology:sport }
[]
sport
Clarification for simple ques.
Q1160302
SYSTEM
Did you mean HC Dynamo Moscow ?
Q1160302 Q203384
(Q1160302,P641,c(Q349)) (Q203384,P641,c(Q349))
[ANSWER]
['Q1160302', 'P641', {'concept': 'Q349'}] ['Q203384', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q1160302 property:P641 ?f . ?f rdf:type ontology:Q349 }
HC Dynamo Moscow Toronto Maple Leafs
Did you mean HC Dynamo Moscow ?
HC Dynamo Moscow
['HC Dynamo Moscow', 'sport', {'concept': 'sport'}] ['Toronto Maple Leafs', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:HC_Dynamo_Moscow property:sport ?f . ?f rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1160302,P641,c(Q349))
['Q1160302', 'P641', {'concept': 'Q349'}]
['HC Dynamo Moscow', 'sport', {'concept': 'sport'}]
[]
Q41466
SYSTEM
ice hockey
Q41466
(Q1160302,P641,c(Q349))
action filter_type
action find
entity Q1160302
relation P641
type Q349
The [ANSWER] was that sports team a part of
['Q1160302', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q1160302 property:P641 ?f . ?f rdf:type ontology:Q349 }
ice hockey
The ice hockey was that sports team a part of
ice hockey
action filter_type
action find
entity HC Dynamo Moscow
relation sport
type sport
['HC Dynamo Moscow', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:HC_Dynamo_Moscow property:sport ?f . ?f rdf:type ontology:sport }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q41466 Q1331047
P641
Q13406554
USER
Does 1996–97 Elitserien season play that sport ?
(Q1331047,P641,Q41466)
action is_in
entity Q41466
action find
entity Q1331047
relation P641
['Q1331047', 'P641', 'Q41466']
ASK WHERE { resource:Q1331047 property:P641 resource:Q41466 }
ice hockey 1996–97 Elitserien season
action is_in
entity ice hockey
action find
entity 1996–97 Elitserien season
relation sport
['1996–97 Elitserien season', 'sport', 'ice hockey']
ASK WHERE { resource:1996–97_Elitserien_season property:sport resource:ice_hockey }
[]
sport competition
SYSTEM
YES
(Q1331047,P641,Q41466)
action is_in
entity Q41466
action find
entity Q1331047
relation P641
[ANSWER]
['Q1331047', 'P641', 'Q41466']
ASK WHERE { resource:Q1331047 property:P641 resource:Q41466 }
Yes
action is_in
entity ice hockey
action find
entity 1996–97 Elitserien season
relation sport
['1996–97 Elitserien season', 'sport', 'ice hockey']
ASK WHERE { resource:1996–97_Elitserien_season property:sport resource:ice_hockey }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P115
Q811979 Q1076486 Q12973014
USER
Which sports teams have max number of architectural structures and sports venues as their home ground ?
(c(Q12973014),P115,c(Q811979)|c(Q1076486))
action argmax
action union
action find_tuple_counts
relation P115
type Q12973014
type Q811979
action find_tuple_counts
relation P115
type Q12973014
type Q1076486
[{'concept': 'Q12973014'}, 'P115', [{'concept': 'Q811979'}, {'concept': 'Q1076486'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) ?g WHERE { { ?g rdf:type ontology:Q12973014 . ?f rdf:type ontology:Q1076486 . ?g property:P115 ?f } UNION { ?g property:P115 ?f . ?g rdf:type ontology:Q12973014 . ?f rdf:type ontology:Q811979 } } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) ?z WHERE { { ?z property:P115 ?p . ?z rdf:type ontology:Q12973014 . ?p rdf:type ontology:Q811979 } UNION { ?z rdf:type ontology:Q12973014 . ?p rdf:type ontology:Q1076486 . ?z property:P115 ?p } } GROUP BY ?z } . FILTER ( ?w = ?q ) }
action argmax
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
[{'concept': 'sports team'}, 'home venue', [{'concept': 'architectural structure'}, {'concept': 'sports venue'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) ?g WHERE { { ?g rdf:type ontology:sports_team . ?f rdf:type ontology:sports_venue . ?g property:home_venue ?f } UNION { ?g property:home_venue ?f . ?g rdf:type ontology:sports_team . ?f rdf:type ontology:architectural_structure } } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) ?z WHERE { { ?z property:home_venue ?p . ?z rdf:type ontology:sports_team . ?p rdf:type ontology:architectural_structure } UNION { ?z rdf:type ontology:sports_team . ?p rdf:type ontology:sports_venue . ?z property:home_venue ?p } } GROUP BY ?z } . FILTER ( ?w = ?q ) }
[]
architectural structure sports venue sports team
Q166105 Q604879 Q484151
SYSTEM
Sacramento Kings, Minnesota Twins, Chiba Lotte Marines
Q166105 Q604879 Q484151
(c(Q12973014),P115,c(Q811979)|c(Q1076486))
action argmax
action union
action find_tuple_counts
relation P115
type Q12973014
type Q811979
action find_tuple_counts
relation P115
type Q12973014
type Q1076486
[ANSWERS] have max number of architectural structures and sports venues as their home ground
[{'concept': 'Q12973014'}, 'P115', [{'concept': 'Q811979'}, {'concept': 'Q1076486'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) ?g WHERE { { ?g rdf:type ontology:Q12973014 . ?f rdf:type ontology:Q1076486 . ?g property:P115 ?f } UNION { ?g property:P115 ?f . ?g rdf:type ontology:Q12973014 . ?f rdf:type ontology:Q811979 } } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) ?z WHERE { { ?z property:P115 ?p . ?z rdf:type ontology:Q12973014 . ?p rdf:type ontology:Q811979 } UNION { ?z rdf:type ontology:Q12973014 . ?p rdf:type ontology:Q1076486 . ?z property:P115 ?p } } GROUP BY ?z } . FILTER ( ?w = ?q ) }
Sacramento Kings Minnesota Twins Chiba Lotte Marines
Sacramento Kings, Minnesota Twins and Chiba Lotte Marines have max number of architectural structures and sports venues as their home ground
Sacramento Kings Minnesota Twins Chiba Lotte Marines
action argmax
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
[{'concept': 'sports team'}, 'home venue', [{'concept': 'architectural structure'}, {'concept': 'sports venue'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) ?g WHERE { { ?g rdf:type ontology:sports_team . ?f rdf:type ontology:sports_venue . ?g property:home_venue ?f } UNION { ?g property:home_venue ?f . ?g rdf:type ontology:sports_team . ?f rdf:type ontology:architectural_structure } } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) ?z WHERE { { ?z property:home_venue ?p . ?z rdf:type ontology:sports_team . ?p rdf:type ontology:architectural_structure } UNION { ?z rdf:type ontology:sports_team . ?p rdf:type ontology:sports_venue . ?z property:home_venue ?p } } GROUP BY ?z } . FILTER ( ?w = ?q ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q57354 Q1331047
P17
Q15617994
USER
Which administrative territories do 1996–97 Elitserien season or administrative territorial entity of Botswana belong to ?
OR((Q1331047,P17,c(Q15617994)), (Q57354,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1331047
relation P17
action find
entity Q57354
relation P17
type Q15617994
{'OR': [['Q1331047', 'P17', {'concept': 'Q15617994'}], ['Q57354', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q57354 property:P17 ?n } UNION { resource:Q1331047 property:P17 ?n } } . ?n rdf:type ontology:Q15617994 }
administrative territorial entity of Botswana 1996–97 Elitserien season
action filter_type
action union
action find
entity 1996–97 Elitserien season
relation country
action find
entity administrative territorial entity of Botswana
relation country
type designation for an administrative territorial entity
{'OR': [['1996–97 Elitserien season', 'country', {'concept': 'designation for an administrative territorial entity'}], ['administrative territorial entity of Botswana', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:administrative_territorial_entity_of_Botswana property:country ?n } UNION { resource:1996–97_Elitserien_season property:country ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34 Q963
SYSTEM
Sweden, Botswana
Q34 Q963
OR((Q1331047,P17,c(Q15617994)), (Q57354,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1331047
relation P17
action find
entity Q57354
relation P17
type Q15617994
[ANSWERS] 1996–97 Elitserien season or administrative territorial entity of Botswana belong to
{'OR': [['Q1331047', 'P17', {'concept': 'Q15617994'}], ['Q57354', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q57354 property:P17 ?n } UNION { resource:Q1331047 property:P17 ?n } } . ?n rdf:type ontology:Q15617994 }
Sweden Botswana
Sweden and Botswana 1996–97 Elitserien season or administrative territorial entity of Botswana belong to
Sweden Botswana
action filter_type
action union
action find
entity 1996–97 Elitserien season
relation country
action find
entity administrative territorial entity of Botswana
relation country
type designation for an administrative territorial entity
{'OR': [['1996–97 Elitserien season', 'country', {'concept': 'designation for an administrative territorial entity'}], ['administrative territorial entity of Botswana', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:administrative_territorial_entity_of_Botswana property:country ?n } UNION { resource:1996–97_Elitserien_season property:country ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q15527
P530
Q1048835
USER
Do Olvan have diplomatic relations with those administrative territories ?
(Q15527,P530,Q34) (Q15527,P530,Q963)
action is_in
entity prev_answer
action find
entity Q15527
relation P530
['Q15527', 'P530', 'Q34'] ['Q15527', 'P530', 'Q963']
ASK WHERE { resource:Q15527 property:P530 ?t . VALUES ( ?t ) { ( resource:Q34 ) ( resource:Q963 ) } }
Olvan
action is_in
entity prev_answer
action find
entity Olvan
relation diplomatic relation
['Olvan', 'diplomatic relation', 'Sweden'] ['Olvan', 'diplomatic relation', 'Botswana']
ASK WHERE { resource:Olvan property:diplomatic_relation ?t . VALUES ( ?t ) { ( resource:Sweden ) ( resource:Botswana ) } }
[]
political territorial entity
SYSTEM
NO
(Q15527,P530,Q34) (Q15527,P530,Q963)
action is_in
entity prev_answer
action find
entity Q15527
relation P530
[ANSWER]
['Q15527', 'P530', 'Q34'] ['Q15527', 'P530', 'Q963']
ASK WHERE { resource:Q15527 property:P530 ?t . VALUES ( ?t ) { ( resource:Q34 ) ( resource:Q963 ) } }
No
action is_in
entity prev_answer
action find
entity Olvan
relation diplomatic relation
['Olvan', 'diplomatic relation', 'Sweden'] ['Olvan', 'diplomatic relation', 'Botswana']
ASK WHERE { resource:Olvan property:diplomatic_relation ?t . VALUES ( ?t ) { ( resource:Sweden ) ( resource:Botswana ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P495
Q15617994 Q15416 Q838948
USER
How many administrative territories did around 6721 television programs or works of art originate ?
(c(Q15416)|c(Q838948),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
value 6721
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { FILTER ( ?h = 6721 ) . { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?h ) WHERE { { ?s property:P495 ?g . ?g rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15416 } UNION { ?s property:P495 ?g . ?g rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q838948 } } GROUP BY ?g } }
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
value 6721
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { FILTER ( ?h = 6721 ) . { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?h ) WHERE { { ?s property:country_of_origin ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:television_program } UNION { ?s property:country_of_origin ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:work_of_art } } GROUP BY ?g } }
[]
designation for an administrative territorial entity television program work of art
SYSTEM
4
Q142 Q884 Q38 Q17
(c(Q15416)|c(Q838948),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
value 6721
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { FILTER ( ?h = 6721 ) . { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?h ) WHERE { { ?s property:P495 ?g . ?g rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15416 } UNION { ?s property:P495 ?g . ?g rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q838948 } } GROUP BY ?g } }
France South Korea Italy Japan
4
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
value 6721
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { FILTER ( ?h = 6721 ) . { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?h ) WHERE { { ?s property:country_of_origin ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:television_program } UNION { ?s property:country_of_origin ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:work_of_art } } GROUP BY ?g } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories have a diplomatic relationship with approximately 24 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 24
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?l ) WHERE { ?a property:P530 ?d . ?a rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?a } . FILTER ( ?l = 24 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 24
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?l ) WHERE { ?a property:diplomatic_relation ?d . ?a rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . FILTER ( ?l = 24 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 24
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?l ) WHERE { ?a property:P530 ?d . ?a rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?a } . FILTER ( ?l = 24 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 24
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?l ) WHERE { ?a property:diplomatic_relation ?d . ?a rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . FILTER ( ?l = 24 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q963
P35
Q502895
USER
Who is the head of state of Botswana ?
(Q963,P35,c(Q502895))
action filter_type
action find
entity Q963
relation P35
type Q502895
['Q963', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q963 property:P35 ?c . ?c rdf:type ontology:Q502895 }
Botswana
action filter_type
action find
entity Botswana
relation head of state
type common name
['Botswana', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Botswana property:head_of_state ?c . ?c rdf:type ontology:common_name }
[]
common name
Q57449
SYSTEM
Ian Khama
Q57449
(Q963,P35,c(Q502895))
action filter_type
action find
entity Q963
relation P35
type Q502895
The head of state of Botswana is Prince [ANSWER]
['Q963', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q963 property:P35 ?c . ?c rdf:type ontology:Q502895 }
Ian Khama
The head of state of Botswana is Prince Ian Khama
Ian Khama
action filter_type
action find
entity Botswana
relation head of state
type common name
['Botswana', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Botswana property:head_of_state ?c . ?c rdf:type ontology:common_name }
[]