Simple Question (Direct)
Simple Question
Q357669
P54
Q847017
USER
Which sports club is Matt Grevers a member of ?
(Q357669,P54,c(Q847017))
action filter_type
action find
entity Q357669
relation P54
type Q847017
['Q357669', 'P54', {'concept': 'Q847017'}]
SELECT DISTINCT ?k WHERE { resource:Q357669 property:P54 ?k . ?k rdf:type ontology:Q847017 }
Matt Grevers
action filter_type
action find
entity Matt Grevers
relation member of sports team
type sports club
['Matt Grevers', 'member of sports team', {'concept': 'sports club'}]
SELECT DISTINCT ?k WHERE { resource:Matt_Grevers property:member_of_sports_team ?k . ?k rdf:type ontology:sports_club }
[]
sports club
Q3568143
SYSTEM
Northwestern Wildcats
Q3568143
(Q357669,P54,c(Q847017))
action filter_type
action find
entity Q357669
relation P54
type Q847017
The [ANSWER] is Matt Grevers a member of
['Q357669', 'P54', {'concept': 'Q847017'}]
SELECT DISTINCT ?k WHERE { resource:Q357669 property:P54 ?k . ?k rdf:type ontology:Q847017 }
Northwestern Wildcats
The Northwestern Wildcats is Matt Grevers a member of
Northwestern Wildcats
action filter_type
action find
entity Matt Grevers
relation member of sports team
type sports club
['Matt Grevers', 'member of sports team', {'concept': 'sports club'}]
SELECT DISTINCT ?k WHERE { resource:Matt_Grevers property:member_of_sports_team ?k . ?k rdf:type ontology:sports_club }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q357669
P21
Q290
USER
Which sex does that person have ?
(Q3568143,P21,c(Q290))
action filter_type
action find
entity Q357669
relation P21
type Q290
['Q3568143', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q357669 property:P21 ?d . ?d rdf:type ontology:Q290 }
Matt Grevers
action filter_type
action find
entity Matt Grevers
relation gender
type sex
['Northwestern Wildcats', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Matt_Grevers property:gender ?d . ?d rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3568143,P21,c(Q290))
action filter_type
action find
entity Q357669
relation P21
type Q290
That person has a [ANSWER]
['Q3568143', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q357669 property:P21 ?d . ?d rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Matt Grevers
relation gender
type sex
['Northwestern Wildcats', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Matt_Grevers property:gender ?d . ?d rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q357669
P1344
Q16510064
USER
Which sporting events did that person compete in ?
(Q6581097,P1344,c(Q16510064))
action filter_type
action find
entity Q357669
relation P1344
type Q16510064
['Q6581097', 'P1344', {'concept': 'Q16510064'}]
SELECT DISTINCT ?o WHERE { resource:Q357669 property:P1344 ?o . ?o rdf:type ontology:Q16510064 }
Matt Grevers
action filter_type
action find
entity Matt Grevers
relation participant of
type sporting event
['male', 'participant of', {'concept': 'sporting event'}]
SELECT DISTINCT ?o WHERE { resource:Matt_Grevers property:participant_of ?o . ?o rdf:type ontology:sporting_event }
[]
sporting event
Q1572219 Q1573485 Q1799270
SYSTEM
Swimming at the 2012 Summer Olympics – Men's 4 × 100 metre freestyle relay, Swimming at the 2012 Summer Olympics – Men's 4 × 100 metre medley relay, Swimming at the 2012 Summer Olympics – Men's 100 metre backstroke
Q1005089 Q1365376 Q1572219 Q1573485 Q369846 Q1799270
(Q6581097,P1344,c(Q16510064))
action filter_type
action find
entity Q357669
relation P1344
type Q16510064
That person competed in [ANSWERS]
['Q6581097', 'P1344', {'concept': 'Q16510064'}]
SELECT DISTINCT ?o WHERE { resource:Q357669 property:P1344 ?o . ?o rdf:type ontology:Q16510064 }
Swimming at the 2008 Summer Olympics – Men's 4 × 100 metre freestyle relay Swimming at the 2008 Summer Olympics – Men's 4 × 100 metre medley relay Swimming at the 2012 Summer Olympics – Men's 4 × 100 metre freestyle relay Swimming at the 2012 Summer Olympics – Men's 4 × 100 metre medley relay Swimming at the 2008 Summer Olympics – Men's 100 metre backstroke Swimming at the 2012 Summer Olympics – Men's 100 metre backstroke
That person competed in Swimming at the 2012 Summer Olympics – Men's 4 × 100 metre freestyle relay, Swimming at the 2012 Summer Olympics – Men's 4 × 100 metre medley relay and Swimming at the 2012 Summer Olympics – Men's 100 metre backstroke
Swimming at the 2012 Summer Olympics – Men's 4 × 100 metre freestyle relay Swimming at the 2012 Summer Olympics – Men's 4 × 100 metre medley relay Swimming at the 2012 Summer Olympics – Men's 100 metre backstroke
action filter_type
action find
entity Matt Grevers
relation participant of
type sporting event
['male', 'participant of', {'concept': 'sporting event'}]
SELECT DISTINCT ?o WHERE { resource:Matt_Grevers property:participant_of ?o . ?o rdf:type ontology:sporting_event }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q59241 Q357669
P47 P27
Q15617994
USER
Which administrative territories do Matt Grevers belong to or share the border with Monte Giberto ?
OR((Q357669,P27,c(Q15617994)), (Q59241,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q357669
relation P27
action find
entity Q59241
relation P47
type Q15617994
{'OR': [['Q357669', 'P27', {'concept': 'Q15617994'}], ['Q59241', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q357669 property:P27 ?u } UNION { resource:Q59241 property:P47 ?u } } . ?u rdf:type ontology:Q15617994 }
Monte Giberto Matt Grevers
action filter_type
action union
action find
entity Matt Grevers
relation country of citizenship
action find
entity Monte Giberto
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Matt Grevers', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Monte Giberto', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Matt_Grevers property:country_of_citizenship ?u } UNION { resource:Monte_Giberto property:shares_border_with ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q59270 Q59283 Q59229 Q59282
SYSTEM
United States of America, Montottone, Ponzano di Fermo, Grottazzolina, Petritoli
Q30 Q59270 Q59283 Q59229 Q59282
OR((Q357669,P27,c(Q15617994)), (Q59241,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q357669
relation P27
action find
entity Q59241
relation P47
type Q15617994
Matt Grevers belong to [ANSWERS]
{'OR': [['Q357669', 'P27', {'concept': 'Q15617994'}], ['Q59241', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q357669 property:P27 ?u } UNION { resource:Q59241 property:P47 ?u } } . ?u rdf:type ontology:Q15617994 }
United States of America Montottone Ponzano di Fermo Grottazzolina Petritoli
Matt Grevers belong to United States of America, Montottone, Ponzano di Fermo, Grottazzolina and Petritoli
United States of America Montottone Ponzano di Fermo Grottazzolina Petritoli
action filter_type
action union
action find
entity Matt Grevers
relation country of citizenship
action find
entity Monte Giberto
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Matt Grevers', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Monte Giberto', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Matt_Grevers property:country_of_citizenship ?u } UNION { resource:Monte_Giberto property:shares_border_with ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q7725634 Q2031291
USER
How many administrative territories are the origins of approximately the same number of literary works and releases as that administrative territory ?
(c(Q7725634)|c(Q2031291),P495,c(Q15617994))
[[{'concept': 'Q7725634'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2031291 }
[[{'concept': 'literary work'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:release }
[]
designation for an administrative territorial entity literary work release
Comparative|Count over More/Less|Mult. entity type|Clarification
Q59229
SYSTEM
Did you mean Grottazzolina ?
(c(Q7725634)|c(Q2031291),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2031291 }
Did you mean Grottazzolina ?
Grottazzolina
[[{'concept': 'literary work'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:release }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant United States of America. Could you tell me the answer for that?
(c(Q7725634)|c(Q2031291),P495,c(Q15617994))
Q30
[[{'concept': 'Q7725634'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'literary work'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q30
(c(Q7725634)|c(Q2031291),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2031291 }
United States of America
1
[[{'concept': 'literary work'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:release }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q30 Q69200
P47
Q13220204
USER
How many administrative country subdivisions share border with United States of America or Avully ?
(Q30,P47,c(Q13220204)) (Q69200,P47,c(Q13220204))
action count
action union
action filter_type
action find
entity Q30
relation P47
type Q13220204
action filter_type
action find
entity Q69200
relation P47
type Q13220204
['Q30', 'P47', {'concept': 'Q13220204'}] ['Q69200', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { VALUES ( ?e ) { ( resource:Q30 ) ( resource:Q69200 ) } . ?e property:P47 ?k }
United States of America Avully
action count
action union
action filter_type
action find
entity United States of America
relation shares border with
type second-level administrative country subdivision
action filter_type
action find
entity Avully
relation shares border with
type second-level administrative country subdivision
['United States of America', 'shares border with', {'concept': 'second-level administrative country subdivision'}] ['Avully', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { VALUES ( ?e ) { ( resource:United_States_of_America ) ( resource:Avully ) } . ?e property:shares_border_with ?k }
[]
second-level administrative country subdivision
SYSTEM
2
Q69471 Q68174
(Q30,P47,c(Q13220204)) (Q69200,P47,c(Q13220204))
action count
action union
action filter_type
action find
entity Q30
relation P47
type Q13220204
action filter_type
action find
entity Q69200
relation P47
type Q13220204
[ANSWER]
['Q30', 'P47', {'concept': 'Q13220204'}] ['Q69200', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { VALUES ( ?e ) { ( resource:Q30 ) ( resource:Q69200 ) } . ?e property:P47 ?k }
Dardagny Avusy
2
action count
action union
action filter_type
action find
entity United States of America
relation shares border with
type second-level administrative country subdivision
action filter_type
action find
entity Avully
relation shares border with
type second-level administrative country subdivision
['United States of America', 'shares border with', {'concept': 'second-level administrative country subdivision'}] ['Avully', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { VALUES ( ?e ) { ( resource:United_States_of_America ) ( resource:Avully ) } . ?e property:shares_border_with ?k }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with exactly 2 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 2
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?z ) WHERE { ?w property:P530 ?o . ?w rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?w } . FILTER ( ?z = 2 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?z ) WHERE { ?w property:diplomatic_relation ?o . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . FILTER ( ?z = 2 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q36 Q96 Q29
SYSTEM
Poland, Mexico, Spain
Q419 Q717 Q881 Q36 Q34 Q739 Q423 Q733 Q28 Q228 Q227 Q96 Q298 Q916 Q77 Q29
(c(Q15617994),P530,c(Q15617994))
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 2
[ANSWERS] have diplomatic relations with exactly 2 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?z ) WHERE { ?w property:P530 ?o . ?w rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?w } . FILTER ( ?z = 2 ) }
Peru Venezuela Vietnam Poland Sweden Colombia North Korea Paraguay Hungary Andorra Azerbaijan Mexico Chile Angola Uruguay Spain
Poland, Mexico and Spain have diplomatic relations with exactly 2 administrative territories
Poland Mexico Spain
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?z ) WHERE { ?w property:diplomatic_relation ?o . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . FILTER ( ?z = 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2852499 Q357669
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Matt Grevers or Anseric ?
OR((Q357669,P27,c(Q15617994)), (Q2852499,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q357669
relation P27
action find
entity Q2852499
relation P27
type Q15617994
{'OR': [['Q357669', 'P27', {'concept': 'Q15617994'}], ['Q2852499', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q357669 property:P27 ?m } UNION { resource:Q2852499 property:P27 ?m } } . ?m rdf:type ontology:Q15617994 }
Anseric Matt Grevers
action filter_type
action union
action find
entity Matt Grevers
relation country of citizenship
action find
entity Anseric
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Matt Grevers', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Anseric', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Matt_Grevers property:country_of_citizenship ?m } UNION { resource:Anseric property:country_of_citizenship ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q30
SYSTEM
France, United States of America
Q142 Q30
OR((Q357669,P27,c(Q15617994)), (Q2852499,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q357669
relation P27
action find
entity Q2852499
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Matt Grevers or Anseric
{'OR': [['Q357669', 'P27', {'concept': 'Q15617994'}], ['Q2852499', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q357669 property:P27 ?m } UNION { resource:Q2852499 property:P27 ?m } } . ?m rdf:type ontology:Q15617994 }
France United States of America
France and United States of America are the countries of citizenship of Matt Grevers or Anseric
France United States of America
action filter_type
action union
action find
entity Matt Grevers
relation country of citizenship
action find
entity Anseric
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Matt Grevers', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Anseric', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Matt_Grevers property:country_of_citizenship ?m } UNION { resource:Anseric property:country_of_citizenship ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic associations with around 31 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 31
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?v ) WHERE { ?c rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 . ?c property:P530 ?d } GROUP BY ?c } . FILTER ( ?v = 31 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 31
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?v ) WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c property:diplomatic_relation ?d } GROUP BY ?c } . FILTER ( ?v = 31 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
2
Q184 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 31
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?v ) WHERE { ?c rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 . ?c property:P530 ?d } GROUP BY ?c } . FILTER ( ?v = 31 ) }
Belarus Zambia
2
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 31
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?v ) WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c property:diplomatic_relation ?d } GROUP BY ?c } . FILTER ( ?v = 31 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have a diplomatic relationship with min number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?g ) { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?y ) WHERE { ?j rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 . ?j property:P530 ?r } GROUP BY ?j } } . { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?v ) WHERE { ?x rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 . ?x property:P530 ?i } GROUP BY ?x } . FILTER ( ?v = ?g ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?g ) { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?y ) WHERE { ?j rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:diplomatic_relation ?r } GROUP BY ?j } } . { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?v ) WHERE { ?x rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:diplomatic_relation ?i } GROUP BY ?x } . FILTER ( ?v = ?g ) }
[]
political territorial entity designation for an administrative territorial entity
Q685 Q691
SYSTEM
Solomon Islands, Papua New Guinea
Q685 Q691
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] have a diplomatic relationship with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?g ) { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?y ) WHERE { ?j rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 . ?j property:P530 ?r } GROUP BY ?j } } . { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?v ) WHERE { ?x rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 . ?x property:P530 ?i } GROUP BY ?x } . FILTER ( ?v = ?g ) }
Solomon Islands Papua New Guinea
Solomon Islands and Papua New Guinea have a diplomatic relationship with min number of administrative territories
Solomon Islands Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?g ) { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?y ) WHERE { ?j rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:diplomatic_relation ?r } GROUP BY ?j } } . { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?v ) WHERE { ?x rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:diplomatic_relation ?i } GROUP BY ?x } . FILTER ( ?v = ?g ) }
[]