Simple Question (Direct)
Simple Question
Q3702005
P641
Q349
USER
What was the sport that Daniele Magro was a part of ?
(Q3702005,P641,c(Q349))
action filter_type
action find
entity Q3702005
relation P641
type Q349
['Q3702005', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?j WHERE { resource:Q3702005 property:P641 ?j . ?j rdf:type ontology:Q349 }
Daniele Magro
action filter_type
action find
entity Daniele Magro
relation sport
type sport
['Daniele Magro', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?j WHERE { resource:Daniele_Magro property:sport ?j . ?j rdf:type ontology:sport }
[]
sport
Q5372
SYSTEM
basketball
Q5372
(Q3702005,P641,c(Q349))
action filter_type
action find
entity Q3702005
relation P641
type Q349
The sport that Daniele Magro was a part of was h [ANSWER]
['Q3702005', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?j WHERE { resource:Q3702005 property:P641 ?j . ?j rdf:type ontology:Q349 }
basketball
The sport that Daniele Magro was a part of was h basketball
basketball
action filter_type
action find
entity Daniele Magro
relation sport
type sport
['Daniele Magro', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?j WHERE { resource:Daniele_Magro property:sport ?j . ?j rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3702005
P54
Q12973014
USER
Which sports team is Daniele Magro a member of ?
(Q3702005,P54,c(Q12973014))
action filter_type
action find
entity Q3702005
relation P54
type Q12973014
['Q3702005', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?j WHERE { resource:Q3702005 property:P54 ?j . ?j rdf:type ontology:Q12973014 }
Daniele Magro
action filter_type
action find
entity Daniele Magro
relation member of sports team
type sports team
['Daniele Magro', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?j WHERE { resource:Daniele_Magro property:member_of_sports_team ?j . ?j rdf:type ontology:sports_team }
[]
sports team
Q766443
SYSTEM
Pallacanestro Treviso
Q766443
(Q3702005,P54,c(Q12973014))
action filter_type
action find
entity Q3702005
relation P54
type Q12973014
[ANSWER] is Daniele Magro a member of
['Q3702005', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?j WHERE { resource:Q3702005 property:P54 ?j . ?j rdf:type ontology:Q12973014 }
Pallacanestro Treviso
Pallacanestro Treviso is Daniele Magro a member of
Pallacanestro Treviso
action filter_type
action find
entity Daniele Magro
relation member of sports team
type sports team
['Daniele Magro', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?j WHERE { resource:Daniele_Magro property:member_of_sports_team ?j . ?j rdf:type ontology:sports_team }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q118719
Q12973014
USER
And how about Florian Bruns?
(Q118719,P54,c(Q12973014))
action filter_type
action find
entity Q118719
relation P54
type Q12973014
['Q118719', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?b WHERE { resource:Q118719 property:P54 ?b . ?b rdf:type ontology:Q12973014 }
Florian Bruns
action filter_type
action find
entity Florian Bruns
relation member of sports team
type sports team
['Florian Bruns', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?b WHERE { resource:Florian_Bruns property:member_of_sports_team ?b . ?b rdf:type ontology:sports_team }
[]
sports team
Q314851
SYSTEM
Germany national under-21 football team
Q314851
(Q118719,P54,c(Q12973014))
action filter_type
action find
entity Q118719
relation P54
type Q12973014
[ANSWER]
['Q118719', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?b WHERE { resource:Q118719 property:P54 ?b . ?b rdf:type ontology:Q12973014 }
Germany national under-21 football team
Germany national under-21 football team
action filter_type
action find
entity Florian Bruns
relation member of sports team
type sports team
['Florian Bruns', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?b WHERE { resource:Florian_Bruns property:member_of_sports_team ?b . ?b rdf:type ontology:sports_team }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1194269
P366
Q349 Q1076486 Q2424752
USER
Which sports are recognized as the main use of less number of sports venues or products than harness racing ?
(c(Q1076486)|c(Q2424752),P366,c(Q349))
action less
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q1076486
action find_reverse_tuple_counts
relation P366
type Q349
type Q2424752
action count
action filter_multi_types
action find_reverse
entity Q1194269
relation P366
type Q1076486
type Q2424752
[[{'concept': 'Q1076486'}, {'concept': 'Q2424752'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?f ) WHERE { VALUES ( ?y ) { ( ontology:Q2424752 ) ( ontology:Q1076486 ) } . ?l rdf:type ?y } GROUP BY ?e } . FILTER ( ?f < ?q ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t property:P366 resource:Q1194269 . { ?t rdf:type ?a . VALUES ( ?a ) { ( ontology:Q1076486 ) ( ontology:Q2424752 ) } } } } }
harness racing
action less
action union
action find_reverse_tuple_counts
relation use
type sport
type sports venue
action find_reverse_tuple_counts
relation use
type sport
type product
action count
action filter_multi_types
action find_reverse
entity harness racing
relation use
type sports venue
type product
[[{'concept': 'sports venue'}, {'concept': 'product'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?f ) WHERE { VALUES ( ?y ) { ( ontology:product ) ( ontology:sports_venue ) } . ?l rdf:type ?y } GROUP BY ?e } . FILTER ( ?f < ?q ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t property:use resource:harness_racing . { ?t rdf:type ?a . VALUES ( ?a ) { ( ontology:sports_venue ) ( ontology:product ) } } } } }
[]
sport sports venue product
Q206763 Q8418 Q500050
SYSTEM
floorball, handball, cross country running
Q7856 Q5372 Q8418 Q1734 Q206989 Q14300548 Q36908 Q500050 Q108429 Q624161 Q1345388 Q177275 Q206763 Q61065 Q847 Q22857 Q41323 Q7291
(c(Q1076486)|c(Q2424752),P366,c(Q349))
action less
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q1076486
action find_reverse_tuple_counts
relation P366
type Q349
type Q2424752
action count
action filter_multi_types
action find_reverse
entity Q1194269
relation P366
type Q1076486
type Q2424752
And [ANSWERS] are recognized as the main use of less number of sports venues or products than harness racing
[[{'concept': 'Q1076486'}, {'concept': 'Q2424752'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?f ) WHERE { VALUES ( ?y ) { ( ontology:Q2424752 ) ( ontology:Q1076486 ) } . ?l rdf:type ?y } GROUP BY ?e } . FILTER ( ?f < ?q ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t property:P366 resource:Q1194269 . { ?t rdf:type ?a . VALUES ( ?a ) { ( ontology:Q1076486 ) ( ontology:Q2424752 ) } } } } }
rallying basketball handball volleyball shooting sport skating mountaineering cross country running archery gliding greyhound racing bobsleigh floorball water sport tennis climbing American football badminton
And floorball, handball and cross country running are recognized as the main use of less number of sports venues or products than harness racing
floorball handball cross country running
action less
action union
action find_reverse_tuple_counts
relation use
type sport
type sports venue
action find_reverse_tuple_counts
relation use
type sport
type product
action count
action filter_multi_types
action find_reverse
entity harness racing
relation use
type sports venue
type product
[[{'concept': 'sports venue'}, {'concept': 'product'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?f ) WHERE { VALUES ( ?y ) { ( ontology:product ) ( ontology:sports_venue ) } . ?l rdf:type ?y } GROUP BY ?e } . FILTER ( ?f < ?q ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t property:use resource:harness_racing . { ?t rdf:type ?a . VALUES ( ?a ) { ( ontology:sports_venue ) ( ontology:product ) } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q2736
P366
Q349 Q1076486 Q2424752
USER
And also tell me about association football?
(c(Q1076486)|c(Q2424752),P366,c(Q349))
action less
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q1076486
action find_reverse_tuple_counts
relation P366
type Q349
type Q2424752
action count
action filter_multi_types
action find_reverse
entity Q2736
relation P366
type Q1076486
type Q2424752
[[{'concept': 'Q1076486'}, {'concept': 'Q2424752'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) ?r WHERE { VALUES ( ?g ) { ( ontology:Q1076486 ) ( ontology:Q2424752 ) } . ?p rdf:type ?g } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { ?e property:P366 resource:Q2736 . { { ?e rdf:type ontology:Q2424752 } UNION { ?e rdf:type ontology:Q1076486 } } } } . FILTER ( ?f < ?b ) }
association football
action less
action union
action find_reverse_tuple_counts
relation use
type sport
type sports venue
action find_reverse_tuple_counts
relation use
type sport
type product
action count
action filter_multi_types
action find_reverse
entity association football
relation use
type sports venue
type product
[[{'concept': 'sports venue'}, {'concept': 'product'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) ?r WHERE { VALUES ( ?g ) { ( ontology:sports_venue ) ( ontology:product ) } . ?p rdf:type ?g } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { ?e property:use resource:association_football . { { ?e rdf:type ontology:product } UNION { ?e rdf:type ontology:sports_venue } } } } . FILTER ( ?f < ?b ) }
[]
sport sports venue product
Q206763 Q8418 Q183018
SYSTEM
floorball, handball, bandy
Q7856 Q5372 Q8418 Q1734 Q206989 Q14300548 Q183018 Q36908 Q500050 Q1875777 Q108429 Q624161 Q1345388 Q177275 Q206763 Q61065 Q847 Q41466 Q22857 Q1194269 Q41323 Q7291
(c(Q1076486)|c(Q2424752),P366,c(Q349))
action less
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q1076486
action find_reverse_tuple_counts
relation P366
type Q349
type Q2424752
action count
action filter_multi_types
action find_reverse
entity Q2736
relation P366
type Q1076486
type Q2424752
[ANSWERS]
[[{'concept': 'Q1076486'}, {'concept': 'Q2424752'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) ?r WHERE { VALUES ( ?g ) { ( ontology:Q1076486 ) ( ontology:Q2424752 ) } . ?p rdf:type ?g } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { ?e property:P366 resource:Q2736 . { { ?e rdf:type ontology:Q2424752 } UNION { ?e rdf:type ontology:Q1076486 } } } } . FILTER ( ?f < ?b ) }
rallying basketball handball volleyball shooting sport skating bandy mountaineering cross country running air racing archery gliding greyhound racing bobsleigh floorball water sport tennis ice hockey climbing harness racing American football badminton
floorball handball bandy
action less
action union
action find_reverse_tuple_counts
relation use
type sport
type sports venue
action find_reverse_tuple_counts
relation use
type sport
type product
action count
action filter_multi_types
action find_reverse
entity association football
relation use
type sports venue
type product
[[{'concept': 'sports venue'}, {'concept': 'product'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) ?r WHERE { VALUES ( ?g ) { ( ontology:sports_venue ) ( ontology:product ) } . ?p rdf:type ?g } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { ?e property:use resource:association_football . { { ?e rdf:type ontology:product } UNION { ?e rdf:type ontology:sports_venue } } } } . FILTER ( ?f < ?b ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P641
Q31629 Q12973014
USER
How many types of sport were approximately 15 sports teams a part of ?
(c(Q12973014),P641,c(Q31629))
action count
action approx
action find_reverse_tuple_counts
relation P641
type Q31629
type Q12973014
value 15
[{'concept': 'Q12973014'}, 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { FILTER ( ?o = 15 ) . { SELECT DISTINCT ?s ( COUNT ( ?l ) AS ?o ) WHERE { ?l property:P641 ?s . ?l rdf:type ontology:Q12973014 . ?s rdf:type ontology:Q31629 } GROUP BY ?s } }
action count
action approx
action find_reverse_tuple_counts
relation sport
type type of sport
type sports team
value 15
[{'concept': 'sports team'}, 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { FILTER ( ?o = 15 ) . { SELECT DISTINCT ?s ( COUNT ( ?l ) AS ?o ) WHERE { ?l property:sport ?s . ?l rdf:type ontology:sports_team . ?s rdf:type ontology:type_of_sport } GROUP BY ?s } }
[]
type of sport sports team
SYSTEM
2
Q542 Q48890
(c(Q12973014),P641,c(Q31629))
action count
action approx
action find_reverse_tuple_counts
relation P641
type Q31629
type Q12973014
value 15
[ANSWER]
[{'concept': 'Q12973014'}, 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { FILTER ( ?o = 15 ) . { SELECT DISTINCT ?s ( COUNT ( ?l ) AS ?o ) WHERE { ?l property:P641 ?s . ?l rdf:type ontology:Q12973014 . ?s rdf:type ontology:Q31629 } GROUP BY ?s } }
athletics college basketball
2
action count
action approx
action find_reverse_tuple_counts
relation sport
type type of sport
type sports team
value 15
[{'concept': 'sports team'}, 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { FILTER ( ?o = 15 ) . { SELECT DISTINCT ?s ( COUNT ( ?l ) AS ?o ) WHERE { ?l property:sport ?s . ?l rdf:type ontology:sports_team . ?s rdf:type ontology:type_of_sport } GROUP BY ?s } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q164761
P641
Q31629 Q12973014
USER
How many types of sport were more number of sports teams a part of than 100 metres ?
(c(Q12973014),P641,c(Q31629))
action count
action greater
action find_reverse_tuple_counts
relation P641
type Q31629
type Q12973014
action count
action filter_type
action find
entity Q164761
relation P641
type Q12973014
[{'concept': 'Q12973014'}, 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?e ) WHERE { ?v property:P641 ?i . ?i rdf:type ontology:Q31629 . ?v rdf:type ontology:Q12973014 } GROUP BY ?i } . FILTER ( ?e > ?a ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { ?t rdf:type ontology:Q12973014 . resource:Q164761 property:P641 ?t } } }
100 metres
action count
action greater
action find_reverse_tuple_counts
relation sport
type type of sport
type sports team
action count
action filter_type
action find
entity 100 metres
relation sport
type sports team
[{'concept': 'sports team'}, 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?e ) WHERE { ?v property:sport ?i . ?i rdf:type ontology:type_of_sport . ?v rdf:type ontology:sports_team } GROUP BY ?i } . FILTER ( ?e > ?a ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { ?t rdf:type ontology:sports_team . resource:100_metres property:sport ?t } } }
[]
type of sport sports team
SYSTEM
11
Q29358 Q216613 Q542 Q179687 Q272460 Q3609 Q14554839 Q186222 Q1128216 Q7735 Q48890
(c(Q12973014),P641,c(Q31629))
action count
action greater
action find_reverse_tuple_counts
relation P641
type Q31629
type Q12973014
action count
action filter_type
action find
entity Q164761
relation P641
type Q12973014
[ANSWER]
[{'concept': 'Q12973014'}, 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?e ) WHERE { ?v property:P641 ?i . ?i rdf:type ontology:Q31629 . ?v rdf:type ontology:Q12973014 } GROUP BY ?i } . FILTER ( ?e > ?a ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { ?t rdf:type ontology:Q12973014 . resource:Q164761 property:P641 ?t } } }
orienteering Nordic skiing athletics cross-country skiing Pilates road bicycle racing competitive fencing alpine skiing wheelchair basketball diving college basketball
11
action count
action greater
action find_reverse_tuple_counts
relation sport
type type of sport
type sports team
action count
action filter_type
action find
entity 100 metres
relation sport
type sports team
[{'concept': 'sports team'}, 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?e ) WHERE { ?v property:sport ?i . ?i rdf:type ontology:type_of_sport . ?v rdf:type ontology:sports_team } GROUP BY ?i } . FILTER ( ?e > ?a ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { ?t rdf:type ontology:sports_team . resource:100_metres property:sport ?t } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q3817372
P641
Q31629 Q12973014
USER
And how about beach run?
(c(Q12973014),P641,c(Q31629))
action count
action greater
action find_reverse_tuple_counts
relation P641
type Q31629
type Q12973014
action count
action filter_type
action find
entity Q3817372
relation P641
type Q12973014
[{'concept': 'Q12973014'}, 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?t ) WHERE { ?e property:P641 ?a . ?a rdf:type ontology:Q31629 . ?e rdf:type ontology:Q12973014 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { resource:Q3817372 property:P641 ?g . ?g rdf:type ontology:Q12973014 } } . FILTER ( ?t > ?u ) }
beach run
action count
action greater
action find_reverse_tuple_counts
relation sport
type type of sport
type sports team
action count
action filter_type
action find
entity beach run
relation sport
type sports team
[{'concept': 'sports team'}, 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?t ) WHERE { ?e property:sport ?a . ?a rdf:type ontology:type_of_sport . ?e rdf:type ontology:sports_team } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { resource:beach_run property:sport ?g . ?g rdf:type ontology:sports_team } } . FILTER ( ?t > ?u ) }
[]
type of sport sports team
SYSTEM
11
Q29358 Q216613 Q542 Q179687 Q272460 Q3609 Q14554839 Q186222 Q1128216 Q7735 Q48890
(c(Q12973014),P641,c(Q31629))
action count
action greater
action find_reverse_tuple_counts
relation P641
type Q31629
type Q12973014
action count
action filter_type
action find
entity Q3817372
relation P641
type Q12973014
[ANSWER]
[{'concept': 'Q12973014'}, 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?t ) WHERE { ?e property:P641 ?a . ?a rdf:type ontology:Q31629 . ?e rdf:type ontology:Q12973014 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { resource:Q3817372 property:P641 ?g . ?g rdf:type ontology:Q12973014 } } . FILTER ( ?t > ?u ) }
orienteering Nordic skiing athletics cross-country skiing Pilates road bicycle racing competitive fencing alpine skiing wheelchair basketball diving college basketball
11
action count
action greater
action find_reverse_tuple_counts
relation sport
type type of sport
type sports team
action count
action filter_type
action find
entity beach run
relation sport
type sports team
[{'concept': 'sports team'}, 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?t ) WHERE { ?e property:sport ?a . ?a rdf:type ontology:type_of_sport . ?e rdf:type ontology:sports_team } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { resource:beach_run property:sport ?g . ?g rdf:type ontology:sports_team } } . FILTER ( ?t > ?u ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q314851
P1532
Q1048835
USER
Which political territory is played by Germany national under-21 football team ?
(Q314851,P1532,c(Q1048835))
action filter_type
action find
entity Q314851
relation P1532
type Q1048835
['Q314851', 'P1532', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { resource:Q314851 property:P1532 ?k . ?k rdf:type ontology:Q1048835 }
Germany national under-21 football team
action filter_type
action find
entity Germany national under-21 football team
relation country for sport
type political territorial entity
['Germany national under-21 football team', 'country for sport', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Germany_national_under-21_football_team property:country_for_sport ?k . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q314851,P1532,c(Q1048835))
action filter_type
action find
entity Q314851
relation P1532
type Q1048835
And [ANSWER] is played by [ANSWER] national under-21 football team
['Q314851', 'P1532', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { resource:Q314851 property:P1532 ?k . ?k rdf:type ontology:Q1048835 }
Germany
And Germany is played by Germany national under-21 football team
Germany
action filter_type
action find
entity Germany national under-21 football team
relation country for sport
type political territorial entity
['Germany national under-21 football team', 'country for sport', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Germany_national_under-21_football_team property:country_for_sport ?k . ?k rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q21858388
Q1048835
USER
And also tell me about Peter Pulu?
(Q21858388,P1532,c(Q1048835))
action filter_type
action find
entity Q21858388
relation P1532
type Q1048835
['Q21858388', 'P1532', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q21858388 property:P1532 ?l . ?l rdf:type ontology:Q1048835 }
Peter Pulu
action filter_type
action find
entity Peter Pulu
relation country for sport
type political territorial entity
['Peter Pulu', 'country for sport', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Peter_Pulu property:country_for_sport ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q691
SYSTEM
Papua New Guinea
Q691
(Q21858388,P1532,c(Q1048835))
action filter_type
action find
entity Q21858388
relation P1532
type Q1048835
[ANSWER]
['Q21858388', 'P1532', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q21858388 property:P1532 ?l . ?l rdf:type ontology:Q1048835 }
Papua New Guinea
Papua New Guinea
action filter_type
action find
entity Peter Pulu
relation country for sport
type political territorial entity
['Peter Pulu', 'country for sport', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Peter_Pulu property:country_for_sport ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q691 Q1983306 Q1448419
P47
Q1048835
USER
Does Papua New Guinea share border with Planes and Gilena ?
(Q691,P47,Q1983306) (Q691,P47,Q1448419)
action is_in
entity Q691
action intersection
action find_reverse
entity Q1983306
relation P47
action find_reverse
entity Q1448419
relation P47
['Q691', 'P47', 'Q1983306'] ['Q691', 'P47', 'Q1448419']
ASK WHERE { resource:Q691 property:P47 resource:Q1448419 . resource:Q691 property:P47 resource:Q1983306 }
Papua New Guinea Planes Gilena
action is_in
entity Papua New Guinea
action intersection
action find_reverse
entity Planes
relation shares border with
action find_reverse
entity Gilena
relation shares border with
['Papua New Guinea', 'shares border with', 'Planes'] ['Papua New Guinea', 'shares border with', 'Gilena']
ASK WHERE { resource:Papua_New_Guinea property:shares_border_with resource:Gilena . resource:Papua_New_Guinea property:shares_border_with resource:Planes }
[]
political territorial entity
SYSTEM
NO
(Q691,P47,Q1983306) (Q691,P47,Q1448419)
action is_in
entity Q691
action intersection
action find_reverse
entity Q1983306
relation P47
action find_reverse
entity Q1448419
relation P47
[ANSWER]
['Q691', 'P47', 'Q1983306'] ['Q691', 'P47', 'Q1448419']
ASK WHERE { resource:Q691 property:P47 resource:Q1448419 . resource:Q691 property:P47 resource:Q1983306 }
No
action is_in
entity Papua New Guinea
action intersection
action find_reverse
entity Planes
relation shares border with
action find_reverse
entity Gilena
relation shares border with
['Papua New Guinea', 'shares border with', 'Planes'] ['Papua New Guinea', 'shares border with', 'Gilena']
ASK WHERE { resource:Papua_New_Guinea property:shares_border_with resource:Gilena . resource:Papua_New_Guinea property:shares_border_with resource:Planes }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q35
P530
Q1048835 Q1048835
USER
How many political territories have diplomatic relations with lesser number of political territories than Denmark ?
(c(Q1048835),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?g ) AS ?w ) WHERE { ?o property:P530 ?g . ?o rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q1048835 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:Q35 property:P530 ?z . ?z rdf:type ontology:Q1048835 } } . FILTER ( ?w < ?k ) }
Denmark
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?g ) AS ?w ) WHERE { ?o property:diplomatic_relation ?g . ?o rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:Denmark property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity } } . FILTER ( ?w < ?k ) }
[]
political territorial entity political territorial entity
SYSTEM
8
Q1000 Q40 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?g ) AS ?w ) WHERE { ?o property:P530 ?g . ?o rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q1048835 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:Q35 property:P530 ?z . ?z rdf:type ontology:Q1048835 } } . FILTER ( ?w < ?k ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
8
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?g ) AS ?w ) WHERE { ?o property:diplomatic_relation ?g . ?o rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:Denmark property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity } } . FILTER ( ?w < ?k ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q664
P530
Q1048835 Q1048835
USER
And how about New Zealand?
(c(Q1048835),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q664
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?d ) AS ?h ) WHERE { ?b property:P530 ?d . ?b rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q1048835 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { resource:Q664 property:P530 ?i . ?i rdf:type ontology:Q1048835 } } . FILTER ( ?h < ?k ) }
New Zealand
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity New Zealand
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?d ) AS ?h ) WHERE { ?b property:diplomatic_relation ?d . ?b rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:political_territorial_entity } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { resource:New_Zealand property:diplomatic_relation ?i . ?i rdf:type ontology:political_territorial_entity } } . FILTER ( ?h < ?k ) }
[]
political territorial entity political territorial entity
SYSTEM
8
Q1000 Q40 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q664
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?d ) AS ?h ) WHERE { ?b property:P530 ?d . ?b rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q1048835 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { resource:Q664 property:P530 ?i . ?i rdf:type ontology:Q1048835 } } . FILTER ( ?h < ?k ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
8
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity New Zealand
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?d ) AS ?h ) WHERE { ?b property:diplomatic_relation ?d . ?b rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:political_territorial_entity } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { resource:New_Zealand property:diplomatic_relation ?i . ?i rdf:type ontology:political_territorial_entity } } . FILTER ( ?h < ?k ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relations with exactly 1 political territory ?
(c(Q1048835),P530,c(Q15617994))
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 1
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?y ) WHERE { ?a property:P530 ?o . ?a rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q1048835 } GROUP BY ?a } . FILTER ( ?y = 1 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?y ) WHERE { ?a property:diplomatic_relation ?o . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?a } . FILTER ( ?y = 1 ) }
[]
designation for an administrative territorial entity political territorial entity
Q230 Q184 Q32
SYSTEM
Georgia, Belarus, Luxembourg
Q702 Q262 Q265 Q37 Q712 Q717 Q837 Q657 Q792 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q230 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q184 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q1048835),P530,c(Q15617994))
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 1
[ANSWERS] have diplomatic relations with exactly 1 political territory
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?y ) WHERE { ?a property:P530 ?o . ?a rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q1048835 } GROUP BY ?a } . FILTER ( ?y = 1 ) }
Federated States of Micronesia Algeria Uzbekistan Lithuania Fiji Venezuela Nepal Chad El Salvador South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Georgia Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Belarus Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
Georgia, Belarus and Luxembourg have diplomatic relations with exactly 1 political territory
Georgia Belarus Luxembourg
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?y ) WHERE { ?a property:diplomatic_relation ?o . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?a } . FILTER ( ?y = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q32
P530
Q1048835 Q15617994
USER
How many political territories and administrative territories holds diplomatic relationship with Luxembourg ?
(Q32,P530,c(Q1048835)) (Q32,P530,c(Q15617994))
action count
action union
action filter_type
action find
entity Q32
relation P530
type Q1048835
action filter_type
action find
entity Q32
relation P530
type Q15617994
['Q32', 'P530', {'concept': 'Q1048835'}] ['Q32', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { ?f rdf:type ?e . VALUES ( ?e ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } }
Luxembourg
action count
action union
action filter_type
action find
entity Luxembourg
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Luxembourg
relation diplomatic relation
type designation for an administrative territorial entity
['Luxembourg', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Luxembourg', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { ?f rdf:type ?e . VALUES ( ?e ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
1 political territories and 3 administrative territories
Q142 Q31 Q38 Q183
(Q32,P530,c(Q1048835)) (Q32,P530,c(Q15617994))
action count
action union
action filter_type
action find
entity Q32
relation P530
type Q1048835
action filter_type
action find
entity Q32
relation P530
type Q15617994
[ANSWER]
['Q32', 'P530', {'concept': 'Q1048835'}] ['Q32', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { ?f rdf:type ?e . VALUES ( ?e ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } }
France Belgium Italy Germany
1 political territories and 3 administrative territories
action count
action union
action filter_type
action find
entity Luxembourg
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Luxembourg
relation diplomatic relation
type designation for an administrative territorial entity
['Luxembourg', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Luxembourg', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { ?f rdf:type ?e . VALUES ( ?e ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } }
[]