Simple Question (Direct)
Simple Question
Q18748110
P21
Q290
USER
What is the sex of Eric Harris ?
(Q18748110,P21,c(Q290))
action filter_type
action find
entity Q18748110
relation P21
type Q290
['Q18748110', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q18748110 property:P21 ?p . ?p rdf:type ontology:Q290 }
Eric Harris
action filter_type
action find
entity Eric Harris
relation gender
type sex
['Eric Harris', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Eric_Harris property:gender ?p . ?p rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q18748110,P21,c(Q290))
action filter_type
action find
entity Q18748110
relation P21
type Q290
The sex of Eric Harris is a [ANSWER]
['Q18748110', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q18748110 property:P21 ?p . ?p rdf:type ontology:Q290 }
male
The sex of Eric Harris is a male
male
action filter_type
action find
entity Eric Harris
relation gender
type sex
['Eric Harris', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Eric_Harris property:gender ?p . ?p rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18748110
P27
Q15617994
USER
Which administrative territory is that person an inhabitant of ?
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q18748110
relation P27
type Q15617994
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q18748110 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
Eric Harris
action filter_type
action find
entity Eric Harris
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Eric_Harris property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q18748110
relation P27
type Q15617994
The [ANSWER] is that person an inhabitant of
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q18748110 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
United States of America
The United States of America is that person an inhabitant of
United States of America
action filter_type
action find
entity Eric Harris
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Eric_Harris property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P38
Q8142
USER
What is accepted as the currency of that administrative territory ?
(Q30,P38,c(Q8142))
action filter_type
action find
entity Q30
relation P38
type Q8142
['Q30', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?z WHERE { resource:Q30 property:P38 ?z . ?z rdf:type ontology:Q8142 }
United States of America
action filter_type
action find
entity United States of America
relation currency
type currency
['United States of America', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?z WHERE { resource:United_States_of_America property:currency ?z . ?z rdf:type ontology:currency }
[]
currency
Q4917
SYSTEM
United States dollar
Q4917
(Q30,P38,c(Q8142))
action filter_type
action find
entity Q30
relation P38
type Q8142
[ANSWER] is accepted as the currency of that administrative territory
['Q30', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?z WHERE { resource:Q30 property:P38 ?z . ?z rdf:type ontology:Q8142 }
United States dollar
United States dollar is accepted as the currency of that administrative territory
United States dollar
action filter_type
action find
entity United States of America
relation currency
type currency
['United States of America', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?z WHERE { resource:United_States_of_America property:currency ?z . ?z rdf:type ontology:currency }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4917
P17
Q15617994
USER
Which administrative territory is that currency present in ?
(Q4917,P17,c(Q15617994))
action filter_type
action find
entity Q4917
relation P17
type Q15617994
['Q4917', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q4917 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
United States dollar
action filter_type
action find
entity United States dollar
relation country
type designation for an administrative territorial entity
['United States dollar', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:United_States_dollar property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q4917,P17,c(Q15617994))
action filter_type
action find
entity Q4917
relation P17
type Q15617994
That currency is the [ANSWER]
['Q4917', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q4917 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
United States of America
That currency is the United States of America
United States of America
action filter_type
action find
entity United States dollar
relation country
type designation for an administrative territorial entity
['United States dollar', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:United_States_dollar property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4917
P127
Q1076486
USER
Which sports venue is owned by that currency ?
(c(Q1076486),P127,Q30)
action filter_type
action find_reverse
entity Q4917
relation P127
type Q1076486
[{'concept': 'Q1076486'}, 'P127', 'Q30']
SELECT DISTINCT ?f WHERE { ?f property:P127 resource:Q4917 . ?f rdf:type ontology:Q1076486 }
United States dollar
action filter_type
action find_reverse
entity United States dollar
relation owned by
type sports venue
[{'concept': 'sports venue'}, 'owned by', 'United States of America']
SELECT DISTINCT ?f WHERE { ?f property:owned_by resource:United_States_dollar . ?f rdf:type ontology:sports_venue }
[]
sports venue
Q544553
SYSTEM
Arrowhead Stadium
Q544553
(c(Q1076486),P127,Q30)
action filter_type
action find_reverse
entity Q4917
relation P127
type Q1076486
Stadium [ANSWER] is owned by that currency
[{'concept': 'Q1076486'}, 'P127', 'Q30']
SELECT DISTINCT ?f WHERE { ?f property:P127 resource:Q4917 . ?f rdf:type ontology:Q1076486 }
Arrowhead Stadium
Stadium Arrowhead Stadium is owned by that currency
Arrowhead Stadium
action filter_type
action find_reverse
entity United States dollar
relation owned by
type sports venue
[{'concept': 'sports venue'}, 'owned by', 'United States of America']
SELECT DISTINCT ?f WHERE { ?f property:owned_by resource:United_States_dollar . ?f rdf:type ontology:sports_venue }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P669
Q79007 Q1076486
USER
Which streets are exactly 1 sports venue located ?
(c(Q1076486),P669,c(Q79007))
action equal
action find_reverse_tuple_counts
relation P669
type Q79007
type Q1076486
value 1
[{'concept': 'Q1076486'}, 'P669', {'concept': 'Q79007'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?r ) WHERE { ?z property:P669 ?c . ?c rdf:type ontology:Q79007 . ?z rdf:type ontology:Q1076486 } GROUP BY ?c } . FILTER ( ?r = 1 ) }
action equal
action find_reverse_tuple_counts
relation located on street
type street
type sports venue
value 1
[{'concept': 'sports venue'}, 'located on street', {'concept': 'street'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?r ) WHERE { ?z property:located_on_street ?c . ?c rdf:type ontology:street . ?z rdf:type ontology:sports_venue } GROUP BY ?c } . FILTER ( ?r = 1 ) }
[]
street sports venue
Q2874160 Q2391303 Q2921965
SYSTEM
avenue du Général-Sarrail, avenue de la Porte-Molitor, boulevard d'Auteuil
Q2874160 Q2391303 Q2921965
(c(Q1076486),P669,c(Q79007))
action equal
action find_reverse_tuple_counts
relation P669
type Q79007
type Q1076486
value 1
[ANSWERS] are exactly 1 sports venue located
[{'concept': 'Q1076486'}, 'P669', {'concept': 'Q79007'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?r ) WHERE { ?z property:P669 ?c . ?c rdf:type ontology:Q79007 . ?z rdf:type ontology:Q1076486 } GROUP BY ?c } . FILTER ( ?r = 1 ) }
avenue du Général-Sarrail avenue de la Porte-Molitor boulevard d'Auteuil
Avenue du Général-Sarrail, avenue de la Porte-Molitor and boulevard d'Auteuil are exactly 1 sports venue located
avenue du Général-Sarrail avenue de la Porte-Molitor boulevard d'Auteuil
action equal
action find_reverse_tuple_counts
relation located on street
type street
type sports venue
value 1
[{'concept': 'sports venue'}, 'located on street', {'concept': 'street'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?r ) WHERE { ?z property:located_on_street ?c . ?c rdf:type ontology:street . ?z rdf:type ontology:sports_venue } GROUP BY ?c } . FILTER ( ?r = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2924808 Q30
P47 P17
Q15617994
USER
Which administrative territories have a shared border with United States of America or are Brezove Dane present in ?
OR((Q30,P47,c(Q15617994)), (Q2924808,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q30
relation P47
action find
entity Q2924808
relation P17
type Q15617994
{'OR': [['Q30', 'P47', {'concept': 'Q15617994'}], ['Q2924808', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . { { resource:Q2924808 property:P17 ?l } UNION { resource:Q30 property:P47 ?l } } }
Brezove Dane United States of America
action filter_type
action union
action find
entity United States of America
relation shares border with
action find
entity Brezove Dane
relation country
type designation for an administrative territorial entity
{'OR': [['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Brezove Dane', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Brezove_Dane property:country ?l } UNION { resource:United_States_of_America property:shares_border_with ?l } } }
[]
designation for an administrative territorial entity
Q241 Q702 Q717 Q678 Q683 Q710 Q786 Q96 Q159 Q790
SYSTEM
Some of them are Cuba, Federated States of Micronesia, Venezuela, Tonga, Samoa, Kiribati, Dominican Republic, Mexico, Russia, Haiti
Q702 Q804 Q159 Q683 Q96 Q225 Q786 Q241 Q17 Q710 Q678 Q717 Q790
OR((Q30,P47,c(Q15617994)), (Q2924808,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q30
relation P47
action find
entity Q2924808
relation P17
type Q15617994
[ANSWERS] have a shared border with United States of America or are Brezove Dane present in
{'OR': [['Q30', 'P47', {'concept': 'Q15617994'}], ['Q2924808', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . { { resource:Q2924808 property:P17 ?l } UNION { resource:Q30 property:P47 ?l } } }
Federated States of Micronesia Panama Russia Samoa Mexico Bosnia and Herzegovina Dominican Republic Cuba Japan Kiribati Tonga Venezuela Haiti
Cuba, Federated States of Micronesia, Venezuela, Tonga, Samoa, Kiribati, Dominican Republic, Mexico, Russia and Haiti have a shared border with United States of America or are Brezove Dane present in
Cuba Federated States of Micronesia Venezuela Tonga Samoa Kiribati Dominican Republic Mexico Russia Haiti
action filter_type
action union
action find
entity United States of America
relation shares border with
action find
entity Brezove Dane
relation country
type designation for an administrative territorial entity
{'OR': [['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Brezove Dane', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Brezove_Dane property:country ?l } UNION { resource:United_States_of_America property:shares_border_with ?l } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q270307
P47
Q15617994
USER
Do those ones share a border with Santo Stefano di Magra ?
(Q270307,P47,Q241) (Q270307,P47,Q702) (Q270307,P47,Q717) (Q270307,P47,Q678) (Q270307,P47,Q683) (Q270307,P47,Q710) (Q270307,P47,Q786) (Q270307,P47,Q96) (Q270307,P47,Q159) (Q270307,P47,Q790)
action is_in
entity prev_answer
action find
entity Q270307
relation P47
['Q270307', 'P47', 'Q241'] ['Q270307', 'P47', 'Q702'] ['Q270307', 'P47', 'Q717'] ['Q270307', 'P47', 'Q678'] ['Q270307', 'P47', 'Q683'] ['Q270307', 'P47', 'Q710'] ['Q270307', 'P47', 'Q786'] ['Q270307', 'P47', 'Q96'] ['Q270307', 'P47', 'Q159'] ['Q270307', 'P47', 'Q790']
ASK WHERE { resource:Q270307 property:P47 ?q . VALUES ( ?q ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q159 ) } }
Santo Stefano di Magra
action is_in
entity prev_answer
action find
entity Santo Stefano di Magra
relation shares border with
['Santo Stefano di Magra', 'shares border with', 'Cuba'] ['Santo Stefano di Magra', 'shares border with', 'Federated States of Micronesia'] ['Santo Stefano di Magra', 'shares border with', 'Venezuela'] ['Santo Stefano di Magra', 'shares border with', 'Tonga'] ['Santo Stefano di Magra', 'shares border with', 'Samoa'] ['Santo Stefano di Magra', 'shares border with', 'Kiribati'] ['Santo Stefano di Magra', 'shares border with', 'Dominican Republic'] ['Santo Stefano di Magra', 'shares border with', 'Mexico'] ['Santo Stefano di Magra', 'shares border with', 'Russia'] ['Santo Stefano di Magra', 'shares border with', 'Haiti']
ASK WHERE { resource:Santo_Stefano_di_Magra property:shares_border_with ?q . VALUES ( ?q ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Russia ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q270307,P47,Q241) (Q270307,P47,Q702) (Q270307,P47,Q717) (Q270307,P47,Q678) (Q270307,P47,Q683) (Q270307,P47,Q710) (Q270307,P47,Q786) (Q270307,P47,Q96) (Q270307,P47,Q159) (Q270307,P47,Q790)
action is_in
entity prev_answer
action find
entity Q270307
relation P47
[ANSWER]
['Q270307', 'P47', 'Q241'] ['Q270307', 'P47', 'Q702'] ['Q270307', 'P47', 'Q717'] ['Q270307', 'P47', 'Q678'] ['Q270307', 'P47', 'Q683'] ['Q270307', 'P47', 'Q710'] ['Q270307', 'P47', 'Q786'] ['Q270307', 'P47', 'Q96'] ['Q270307', 'P47', 'Q159'] ['Q270307', 'P47', 'Q790']
ASK WHERE { resource:Q270307 property:P47 ?q . VALUES ( ?q ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q159 ) } }
No
action is_in
entity prev_answer
action find
entity Santo Stefano di Magra
relation shares border with
['Santo Stefano di Magra', 'shares border with', 'Cuba'] ['Santo Stefano di Magra', 'shares border with', 'Federated States of Micronesia'] ['Santo Stefano di Magra', 'shares border with', 'Venezuela'] ['Santo Stefano di Magra', 'shares border with', 'Tonga'] ['Santo Stefano di Magra', 'shares border with', 'Samoa'] ['Santo Stefano di Magra', 'shares border with', 'Kiribati'] ['Santo Stefano di Magra', 'shares border with', 'Dominican Republic'] ['Santo Stefano di Magra', 'shares border with', 'Mexico'] ['Santo Stefano di Magra', 'shares border with', 'Russia'] ['Santo Stefano di Magra', 'shares border with', 'Haiti']
ASK WHERE { resource:Santo_Stefano_di_Magra property:shares_border_with ?q . VALUES ( ?q ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Russia ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories are known to have diplomatic connections with atleast 51 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 51
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?l ) AS ?p ) WHERE { ?j property:P530 ?l . ?l rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 } GROUP BY ?j } . FILTER ( ?p >= 51 ) }
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 51
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?l ) AS ?p ) WHERE { ?j property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?j } . FILTER ( ?p >= 51 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
2
Q183 Q408
(c(Q1048835),P530,c(Q15617994))
action count
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 51
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?l ) AS ?p ) WHERE { ?j property:P530 ?l . ?l rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 } GROUP BY ?j } . FILTER ( ?p >= 51 ) }
Germany Australia
2
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 51
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?l ) AS ?p ) WHERE { ?j property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?j } . FILTER ( ?p >= 51 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q781
P530
Q15617994 Q1048835
USER
How many political territories are known to have diplomatic connections with greater number of administrative territories than Antigua and Barbuda ?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?j ) WHERE { ?f property:P530 ?m . ?f rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { resource:Q781 property:P530 ?e . ?e rdf:type ontology:Q15617994 } } . FILTER ( ?j > ?b ) }
Antigua and Barbuda
action count
action greater
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 Antigua and Barbuda
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?j ) WHERE { ?f property:diplomatic_relation ?m . ?f rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?j > ?b ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
7
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?j ) WHERE { ?f property:P530 ?m . ?f rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { resource:Q781 property:P530 ?e . ?e rdf:type ontology:Q15617994 } } . FILTER ( ?j > ?b ) }
Austria Germany Australia Denmark Canada New Zealand Jamaica
7
action count
action greater
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 Antigua and Barbuda
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?j ) WHERE { ?f property:diplomatic_relation ?m . ?f rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?j > ?b ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q778
P530
Q15617994 Q1048835
USER
And what about The Bahamas?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q778
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?h ) AS ?u ) WHERE { ?j rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 . ?j property:P530 ?h } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { resource:Q778 property:P530 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?u > ?v ) }
The Bahamas
action count
action greater
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 The Bahamas
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?h ) AS ?u ) WHERE { ?j rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:diplomatic_relation ?h } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { resource:The_Bahamas property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?u > ?v ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
7
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q778
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?h ) AS ?u ) WHERE { ?j rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 . ?j property:P530 ?h } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { resource:Q778 property:P530 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?u > ?v ) }
Austria Germany Australia Denmark Canada New Zealand Jamaica
7
action count
action greater
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 The Bahamas
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?h ) AS ?u ) WHERE { ?j rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:diplomatic_relation ?h } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { resource:The_Bahamas property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?u > ?v ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic associations with min number of administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?f ) { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?q ) WHERE { ?p property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 } GROUP BY ?p } } . FILTER ( ?a = ?f ) . { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?a ) WHERE { ?u property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q15617994 } GROUP BY ?u } }
action argmin
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 ?u WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?f ) { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?q ) WHERE { ?p property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } } . FILTER ( ?a = ?f ) . { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?a ) WHERE { ?u property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q29999 Q786 Q924
SYSTEM
Kingdom of the Netherlands, Dominican Republic, Tanzania
Q702 Q804 Q262 Q265 Q712 Q837 Q657 Q792 Q986 Q242 Q811 Q924 Q29999 Q854 Q819 Q424 Q730 Q232 Q921 Q1027 Q1020 Q1028 Q786 Q1036 Q1037 Q974 Q1032 Q1030 Q965 Q967 Q963 Q697 Q695 Q115 Q117 Q754 Q912 Q1007 Q1006 Q1005 Q1009 Q1008 Q971 Q683 Q686 Q836 Q774 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWERS] have diplomatic associations with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?f ) { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?q ) WHERE { ?p property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 } GROUP BY ?p } } . FILTER ( ?a = ?f ) . { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?a ) WHERE { ?u property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q15617994 } GROUP BY ?u } }
Federated States of Micronesia Panama Algeria Uzbekistan Fiji Nepal Chad El Salvador Eritrea Belize Nicaragua Tanzania Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Kazakhstan Brunei Mauritius Malawi Morocco Dominican Republic Uganda Rwanda Democratic Republic of the Congo Niger Namibia Burkina Faso Burundi Botswana Nauru Palau Ethiopia Ghana Trinidad and Tobago Mali Guinea-Bissau Guinea Gambia Cameroon Côte d'Ivoire Republic of the Congo Samoa Vanuatu Myanmar Guatemala Kuwait Madagascar Togo Tonga New Caledonia
Kingdom of the Netherlands, Dominican Republic and Tanzania have diplomatic associations with min number of administrative territories
Kingdom of the Netherlands Dominican Republic Tanzania
action argmin
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 ?u WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?f ) { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?q ) WHERE { ?p property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } } . FILTER ( ?a = ?f ) . { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?a ) WHERE { ?u property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } }
[]