Simple Question (Direct)
Simple Question
Q25730
P69
Q3918
USER
What is the university where Paul Ranheim was educated ?
(Q25730,P69,c(Q3918))
action filter_type
action find
entity Q25730
relation P69
type Q3918
['Q25730', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?s WHERE { resource:Q25730 property:P69 ?s . ?s rdf:type ontology:Q3918 }
Paul Ranheim
action filter_type
action find
entity Paul Ranheim
relation educated at
type university
['Paul Ranheim', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?s WHERE { resource:Paul_Ranheim property:educated_at ?s . ?s rdf:type ontology:university }
[]
university
Q838330
SYSTEM
University of Wisconsin–Madison
Q838330
(Q25730,P69,c(Q3918))
action filter_type
action find
entity Q25730
relation P69
type Q3918
The university Paul Ranheim was educated is the [ANSWER]
['Q25730', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?s WHERE { resource:Q25730 property:P69 ?s . ?s rdf:type ontology:Q3918 }
University of Wisconsin–Madison
The university Paul Ranheim was educated is the University of Wisconsin–Madison
University of Wisconsin–Madison
action filter_type
action find
entity Paul Ranheim
relation educated at
type university
['Paul Ranheim', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?s WHERE { resource:Paul_Ranheim property:educated_at ?s . ?s rdf:type ontology:university }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q838330
P463
Q874405
USER
Which social group was that university a member of ?
(Q838330,P463,c(Q874405))
action filter_type
action find
entity Q838330
relation P463
type Q874405
['Q838330', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q874405 . resource:Q838330 property:P463 ?m }
University of Wisconsin–Madison
action filter_type
action find
entity University of Wisconsin–Madison
relation member of
type social group
['University of Wisconsin–Madison', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:social_group . resource:University_of_Wisconsin–Madison property:member_of ?m }
[]
social group
Q4810015
SYSTEM
Association of Public and Land-grant Universities
Q4810015
(Q838330,P463,c(Q874405))
action filter_type
action find
entity Q838330
relation P463
type Q874405
The [ANSWER] was that university a member of
['Q838330', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q874405 . resource:Q838330 property:P463 ?m }
Association of Public and Land-grant Universities
The Association of Public and Land-grant Universities was that university a member of
Association of Public and Land-grant Universities
action filter_type
action find
entity University of Wisconsin–Madison
relation member of
type social group
['University of Wisconsin–Madison', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:social_group . resource:University_of_Wisconsin–Madison property:member_of ?m }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6891485 Q25730
P27
Q15617994
USER
Which administrative territories do Paul Ranheim or Mohamed Salih Omer belong to ?
OR((Q25730,P27,c(Q15617994)), (Q6891485,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q25730
relation P27
action find
entity Q6891485
relation P27
type Q15617994
{'OR': [['Q25730', 'P27', {'concept': 'Q15617994'}], ['Q6891485', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q25730 property:P27 ?w } UNION { resource:Q6891485 property:P27 ?w } } . ?w rdf:type ontology:Q15617994 }
Mohamed Salih Omer Paul Ranheim
action filter_type
action union
action find
entity Paul Ranheim
relation country of citizenship
action find
entity Mohamed Salih Omer
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Paul Ranheim', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mohamed Salih Omer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Paul_Ranheim property:country_of_citizenship ?w } UNION { resource:Mohamed_Salih_Omer property:country_of_citizenship ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q1049
SYSTEM
United States of America, Sudan
Q30 Q1049
OR((Q25730,P27,c(Q15617994)), (Q6891485,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q25730
relation P27
action find
entity Q6891485
relation P27
type Q15617994
Paul Ranheim or Mohamed Salih Omer belong to the [ANSWERS]
{'OR': [['Q25730', 'P27', {'concept': 'Q15617994'}], ['Q6891485', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q25730 property:P27 ?w } UNION { resource:Q6891485 property:P27 ?w } } . ?w rdf:type ontology:Q15617994 }
United States of America Sudan
Paul Ranheim or Mohamed Salih Omer belong to the United States of America and Sudan
United States of America Sudan
action filter_type
action union
action find
entity Paul Ranheim
relation country of citizenship
action find
entity Mohamed Salih Omer
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Paul Ranheim', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mohamed Salih Omer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Paul_Ranheim property:country_of_citizenship ?w } UNION { resource:Mohamed_Salih_Omer property:country_of_citizenship ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q664
P530
Q15617994 Q1048835
USER
How many political territories have diplomatic associations with approximately the same number of administrative territories as New Zealand ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q664
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n rdf:type ontology:Q1048835 . resource:Q664 property:P530 ?n } } . FILTER ( ?m = ?o ) . { SELECT DISTINCT ?k ( COUNT ( ?d ) AS ?m ) WHERE { ?k property:P530 ?d . ?d rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 } GROUP BY ?k } }
New Zealand
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative 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': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n rdf:type ontology:political_territorial_entity . resource:New_Zealand property:diplomatic_relation ?n } } . FILTER ( ?m = ?o ) . { SELECT DISTINCT ?k ( COUNT ( ?d ) AS ?m ) WHERE { ?k property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity } GROUP BY ?k } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q664
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n rdf:type ontology:Q1048835 . resource:Q664 property:P530 ?n } } . FILTER ( ?m = ?o ) . { SELECT DISTINCT ?k ( COUNT ( ?d ) AS ?m ) WHERE { ?k property:P530 ?d . ?d rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 } GROUP BY ?k } }
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
action count
action filter_type
action find
entity New Zealand
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n rdf:type ontology:political_territorial_entity . resource:New_Zealand property:diplomatic_relation ?n } } . FILTER ( ?m = ?o ) . { SELECT DISTINCT ?k ( COUNT ( ?d ) AS ?m ) WHERE { ?k property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity } GROUP BY ?k } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q685
P530
Q15617994 Q1048835
USER
And what about Solomon Islands?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q685
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?e ) WHERE { ?q property:P530 ?i . ?i rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { resource:Q685 property:P530 ?m . ?m rdf:type ontology:Q1048835 } } . FILTER ( ?e = ?p ) }
Solomon Islands
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Solomon Islands
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?e ) WHERE { ?q property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { resource:Solomon_Islands property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity } } . FILTER ( ?e = ?p ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q685
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?e ) WHERE { ?q property:P530 ?i . ?i rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { resource:Q685 property:P530 ?m . ?m rdf:type ontology:Q1048835 } } . FILTER ( ?e = ?p ) }
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
action count
action filter_type
action find
entity Solomon Islands
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?e ) WHERE { ?q property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { resource:Solomon_Islands property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity } } . FILTER ( ?e = ?p ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have ambassadorial relations 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 ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?i ) WHERE { ?t property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?t } . FILTER ( ?i = ?a ) . { SELECT DISTINCT ( MAX ( ?l ) AS ?a ) { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?l ) WHERE { ?k rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 . ?k property:P530 ?e } GROUP BY ?k } } }
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 ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?i ) WHERE { ?t property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . FILTER ( ?i = ?a ) . { SELECT DISTINCT ( MAX ( ?l ) AS ?a ) { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?l ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:diplomatic_relation ?e } GROUP BY ?k } } }
[]
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
To [ANSWER] have ambassadorial relations with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?i ) WHERE { ?t property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?t } . FILTER ( ?i = ?a ) . { SELECT DISTINCT ( MAX ( ?l ) AS ?a ) { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?l ) WHERE { ?k rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 . ?k property:P530 ?e } GROUP BY ?k } } }
Georgia
To Georgia have ambassadorial relations 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 ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?i ) WHERE { ?t property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . FILTER ( ?i = ?a ) . { SELECT DISTINCT ( MAX ( ?l ) AS ?a ) { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?l ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:diplomatic_relation ?e } GROUP BY ?k } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q838948 Q15416
USER
How many administrative territories are the origins of greater number of works of art and television programs than that administrative territory ?
(c(Q838948)|c(Q15416),P495,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q230
relation P495
type Q838948
type Q15416
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) ?l WHERE { { ?u property:P495 ?l . ?l rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q838948 } UNION { ?l rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q15416 . ?u property:P495 ?l } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { ?y property:P495 resource:Q230 . { { ?y rdf:type ontology:Q838948 } UNION { ?y rdf:type ontology:Q15416 } } } } . FILTER ( ?d > ?z ) }
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Georgia
relation country of origin
type work of art
type television program
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) ?l WHERE { { ?u property:country_of_origin ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:work_of_art } UNION { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:television_program . ?u property:country_of_origin ?l } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { ?y property:country_of_origin resource:Georgia . { { ?y rdf:type ontology:work_of_art } UNION { ?y rdf:type ontology:television_program } } } } . FILTER ( ?d > ?z ) }
[]
designation for an administrative territorial entity work of art television program
SYSTEM
69
Q801 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q37 Q717 Q837 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q794 Q884 Q881 Q822 Q241 Q33 Q32 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q854 Q424 Q232 Q20 Q1041 Q27 Q28 Q189 Q843 Q1028 Q225 Q224 Q222 Q96 Q17 Q902 Q1033 Q191 Q298 Q212 Q213 Q214 Q215 Q218 Q219 Q833 Q836 Q79 Q77 Q858 Q948 Q29 Q869
(c(Q838948)|c(Q15416),P495,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q230
relation P495
type Q838948
type Q15416
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) ?l WHERE { { ?u property:P495 ?l . ?l rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q838948 } UNION { ?l rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q15416 . ?u property:P495 ?l } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { ?y property:P495 resource:Q230 . { { ?y rdf:type ontology:Q838948 } UNION { ?y rdf:type ontology:Q15416 } } } } . FILTER ( ?d > ?z ) }
Israel Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Lithuania Venezuela Nepal Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iran South Korea Vietnam Lebanon Cuba Finland Luxembourg Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia Sri Lanka Cambodia Kazakhstan Norway Senegal Ireland Hungary Iceland Pakistan Morocco Bosnia and Herzegovina Croatia Albania Mexico Japan Bangladesh Nigeria Estonia Chile Ukraine Czech Republic Slovakia Slovenia Romania Bulgaria Malaysia Myanmar Egypt Uruguay Syria Tunisia Spain Thailand
69
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Georgia
relation country of origin
type work of art
type television program
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) ?l WHERE { { ?u property:country_of_origin ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:work_of_art } UNION { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:television_program . ?u property:country_of_origin ?l } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { ?y property:country_of_origin resource:Georgia . { { ?y rdf:type ontology:work_of_art } UNION { ?y rdf:type ontology:television_program } } } } . FILTER ( ?d > ?z ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q923075 Q25730
P54
Q12973014
USER
Which sports teams have Paul Ranheim or Pops Mensah-Bonsu as their member ?
OR((Q25730,P54,c(Q12973014)), (Q923075,P54,c(Q12973014)))
action filter_type
action union
action find
entity Q25730
relation P54
action find
entity Q923075
relation P54
type Q12973014
{'OR': [['Q25730', 'P54', {'concept': 'Q12973014'}], ['Q923075', 'P54', {'concept': 'Q12973014'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q12973014 . { { resource:Q25730 property:P54 ?i } UNION { resource:Q923075 property:P54 ?i } } }
Pops Mensah-Bonsu Paul Ranheim
action filter_type
action union
action find
entity Paul Ranheim
relation member of sports team
action find
entity Pops Mensah-Bonsu
relation member of sports team
type sports team
{'OR': [['Paul Ranheim', 'member of sports team', {'concept': 'sports team'}], ['Pops Mensah-Bonsu', 'member of sports team', {'concept': 'sports team'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:sports_team . { { resource:Paul_Ranheim property:member_of_sports_team ?i } UNION { resource:Pops_Mensah-Bonsu property:member_of_sports_team ?i } } }
[]
sports team
Q192083 Q457376 Q132880 Q54930 Q132893 Q830968 Q54908 Q4089 Q201857 Q854669
SYSTEM
Some of them are Philadelphia Flyers, PBC CSKA Moscow, Toronto Raptors, CB Sevilla, Dallas Mavericks, Hartford Whalers, Joventut Badalona, ASVEL Basket, Carolina Hurricanes, Beşiktaş men's basketball team
Q54930 Q2318786 Q192083 Q854669 Q54908 Q457376 Q201857 Q206312 Q132893 Q766443 Q194126 Q172339 Q132880 Q4089 Q830968 Q159729 Q781184 Q161345
OR((Q25730,P54,c(Q12973014)), (Q923075,P54,c(Q12973014)))
action filter_type
action union
action find
entity Q25730
relation P54
action find
entity Q923075
relation P54
type Q12973014
[ANSWERS] have Paul Ranheim or Pops Mensah-Bonsu as their member
{'OR': [['Q25730', 'P54', {'concept': 'Q12973014'}], ['Q923075', 'P54', {'concept': 'Q12973014'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q12973014 . { { resource:Q25730 property:P54 ?i } UNION { resource:Q923075 property:P54 ?i } } }
CB Sevilla CB Granada Philadelphia Flyers Beşiktaş men's basketball team Joventut Badalona PBC CSKA Moscow Carolina Hurricanes Arizona Coyotes Dallas Mavericks Pallacanestro Treviso Calgary Flames New Orleans Pelicans Toronto Raptors ASVEL Basket Hartford Whalers San Antonio Spurs Austin Toros Houston Rockets
Philadelphia Flyers, PBC CSKA Moscow, Toronto Raptors, CB Sevilla, Dallas Mavericks, Hartford Whalers, Joventut Badalona, ASVEL Basket, Carolina Hurricanes and Beşiktaş men's basketball team have Paul Ranheim or Pops Mensah-Bonsu as their member
Philadelphia Flyers PBC CSKA Moscow Toronto Raptors CB Sevilla Dallas Mavericks Hartford Whalers Joventut Badalona ASVEL Basket Carolina Hurricanes Beşiktaş men's basketball team
action filter_type
action union
action find
entity Paul Ranheim
relation member of sports team
action find
entity Pops Mensah-Bonsu
relation member of sports team
type sports team
{'OR': [['Paul Ranheim', 'member of sports team', {'concept': 'sports team'}], ['Pops Mensah-Bonsu', 'member of sports team', {'concept': 'sports team'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:sports_team . { { resource:Paul_Ranheim property:member_of_sports_team ?i } UNION { resource:Pops_Mensah-Bonsu property:member_of_sports_team ?i } } }
[]