Simple Question (Direct)
Simple Question
Q5283876
P19
Q56061
USER
Which administrative territory was Kristen Veal born at ?
(Q5283876,P19,c(Q56061))
action filter_type
action find
entity Q5283876
relation P19
type Q56061
['Q5283876', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q5283876 property:P19 ?m . ?m rdf:type ontology:Q56061 }
Kristen Veal
action filter_type
action find
entity Kristen Veal
relation place of birth
type administrative territorial entity
['Kristen Veal', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Kristen_Veal property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q5112
SYSTEM
Adelaide
Q5112
(Q5283876,P19,c(Q56061))
action filter_type
action find
entity Q5283876
relation P19
type Q56061
Kristen Veal was born in [ANSWER]
['Q5283876', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q5283876 property:P19 ?m . ?m rdf:type ontology:Q56061 }
Adelaide
Kristen Veal was born in Adelaide
Adelaide
action filter_type
action find
entity Kristen Veal
relation place of birth
type administrative territorial entity
['Kristen Veal', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Kristen_Veal property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5112
P1444
Q2912397
USER
Which single-day races end their journey at that administrative territory ?
(c(Q2912397),P1444,Q5112)
action filter_type
action find_reverse
entity Q5112
relation P1444
type Q2912397
[{'concept': 'Q2912397'}, 'P1444', 'Q5112']
SELECT DISTINCT ?e WHERE { ?e property:P1444 resource:Q5112 . ?e rdf:type ontology:Q2912397 }
Adelaide
action filter_type
action find_reverse
entity Adelaide
relation destination point
type single-day race
[{'concept': 'single-day race'}, 'destination point', 'Adelaide']
SELECT DISTINCT ?e WHERE { ?e property:destination_point resource:Adelaide . ?e rdf:type ontology:single-day_race }
[]
single-day race
Q21622558 Q21622562 Q3714767
SYSTEM
2014 People's Choice Classic, 2016 People's Choice Classic, 2016 Down Under Classic
Q18810454 Q21622558 Q21622562 Q3714767 Q3714772 Q3714770 Q3714771 Q22087045 Q22087083 Q22087046
(c(Q2912397),P1444,Q5112)
action filter_type
action find_reverse
entity Q5112
relation P1444
type Q2912397
[ANSWERS]
[{'concept': 'Q2912397'}, 'P1444', 'Q5112']
SELECT DISTINCT ?e WHERE { ?e property:P1444 resource:Q5112 . ?e rdf:type ontology:Q2912397 }
People's Choice Classic 2015 2014 People's Choice Classic 2016 People's Choice Classic 2016 Down Under Classic 2010 Down Under Classic 2007 Down Under Classic 2009 Down Under Classic 2011 Down Under Classic 2013 People's Choice Classic 2012 Down Under Classic
Which single-day races end their journey at that administrative territory
2014 People's Choice Classic 2016 People's Choice Classic 2016 Down Under Classic
action filter_type
action find_reverse
entity Adelaide
relation destination point
type single-day race
[{'concept': 'single-day race'}, 'destination point', 'Adelaide']
SELECT DISTINCT ?e WHERE { ?e property:destination_point resource:Adelaide . ?e rdf:type ontology:single-day_race }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q21622558 Q21622562 Q3714767
P1444
Q56061
USER
Which administrative territories are the end points of 2014 People's Choice Classic, 2016 People's Choice Classic and 2016 Down Under Classic ?
(Q21622558,P1444,c(Q56061)) (Q21622562,P1444,c(Q56061)) (Q3714767,P1444,c(Q56061))
action union
action filter_type
action find
entity Q21622558
relation P1444
type Q56061
action filter_type
action find
entity Q21622562
relation P1444
type Q56061
action filter_type
action find
entity Q3714767
relation P1444
type Q56061
['Q21622558', 'P1444', {'concept': 'Q56061'}] ['Q21622562', 'P1444', {'concept': 'Q56061'}] ['Q3714767', 'P1444', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?m ) { ( resource:Q21622558 ) ( resource:Q21622562 ) } . ?m property:P1444 ?o }
2014 People's Choice Classic 2016 People's Choice Classic 2016 Down Under Classic
action union
action filter_type
action find
entity 2014 People's Choice Classic
relation destination point
type administrative territorial entity
action filter_type
action find
entity 2016 People's Choice Classic
relation destination point
type administrative territorial entity
action filter_type
action find
entity 2016 Down Under Classic
relation destination point
type administrative territorial entity
["2014 People's Choice Classic", 'destination point', {'concept': 'administrative territorial entity'}] ["2016 People's Choice Classic", 'destination point', {'concept': 'administrative territorial entity'}] ['2016 Down Under Classic', 'destination point', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?m ) { ( resource:2014_People's_Choice_Classic ) ( resource:2016_People's_Choice_Classic ) } . ?m property:destination_point ?o }
[]
administrative territorial entity
Q5112 Q5112 Q5112
SYSTEM
Adelaide
Q5112 Q5112 Q5112
(Q21622558,P1444,c(Q56061)) (Q21622562,P1444,c(Q56061)) (Q3714767,P1444,c(Q56061))
action union
action filter_type
action find
entity Q21622558
relation P1444
type Q56061
action filter_type
action find
entity Q21622562
relation P1444
type Q56061
action filter_type
action find
entity Q3714767
relation P1444
type Q56061
[ANSWER], [ANSWER] and [ANSWER] are the end points of 2014 People's Choice Classic, 2016 People's Choice Classic and 2016 Down Under Classic
['Q21622558', 'P1444', {'concept': 'Q56061'}] ['Q21622562', 'P1444', {'concept': 'Q56061'}] ['Q3714767', 'P1444', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?m ) { ( resource:Q21622558 ) ( resource:Q21622562 ) } . ?m property:P1444 ?o }
Adelaide Adelaide Adelaide
Adelaide, Adelaide and Adelaide are the end points of 2014 People's Choice Classic, 2016 People's Choice Classic and 2016 Down Under Classic
Adelaide Adelaide Adelaide
action union
action filter_type
action find
entity 2014 People's Choice Classic
relation destination point
type administrative territorial entity
action filter_type
action find
entity 2016 People's Choice Classic
relation destination point
type administrative territorial entity
action filter_type
action find
entity 2016 Down Under Classic
relation destination point
type administrative territorial entity
["2014 People's Choice Classic", 'destination point', {'concept': 'administrative territorial entity'}] ["2016 People's Choice Classic", 'destination point', {'concept': 'administrative territorial entity'}] ['2016 Down Under Classic', 'destination point', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?m ) { ( resource:2014_People's_Choice_Classic ) ( resource:2016_People's_Choice_Classic ) } . ?m property:destination_point ?o }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5112
P138
Q502895
USER
Which person is namesake of that administrative territory ?
(Q5112,P138,c(Q502895)) (Q5112,P138,c(Q502895)) (Q5112,P138,c(Q502895))
action filter_type
action find
entity Q5112
relation P138
type Q502895
['Q5112', 'P138', {'concept': 'Q502895'}] ['Q5112', 'P138', {'concept': 'Q502895'}] ['Q5112', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q5112 property:P138 ?o . ?o rdf:type ontology:Q502895 }
Adelaide
action filter_type
action find
entity Adelaide
relation named after
type common name
['Adelaide', 'named after', {'concept': 'common name'}] ['Adelaide', 'named after', {'concept': 'common name'}] ['Adelaide', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Adelaide property:named_after ?o . ?o rdf:type ontology:common_name }
[]
common name
Q57645
SYSTEM
Adelaide of Saxe-Meiningen
Q57645
(Q5112,P138,c(Q502895)) (Q5112,P138,c(Q502895)) (Q5112,P138,c(Q502895))
action filter_type
action find
entity Q5112
relation P138
type Q502895
[ANSWER] is namesake of that administrative territory
['Q5112', 'P138', {'concept': 'Q502895'}] ['Q5112', 'P138', {'concept': 'Q502895'}] ['Q5112', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q5112 property:P138 ?o . ?o rdf:type ontology:Q502895 }
Adelaide of Saxe-Meiningen
Adelaide of Saxe-Meiningen is namesake of that administrative territory
Adelaide of Saxe-Meiningen
action filter_type
action find
entity Adelaide
relation named after
type common name
['Adelaide', 'named after', {'concept': 'common name'}] ['Adelaide', 'named after', {'concept': 'common name'}] ['Adelaide', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Adelaide property:named_after ?o . ?o rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P27
Q1048835
USER
How many political territories are that person a civilian of ?
(Q57645,P27,c(Q1048835))
action count
action filter_type
action find
entity Q57645
relation P27
type Q1048835
['Q57645', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Q57645 property:P27 ?n . ?n rdf:type ontology:Q1048835 }
action count
action filter_type
action find
entity Adelaide of Saxe-Meiningen
relation country of citizenship
type political territorial entity
['Adelaide of Saxe-Meiningen', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Adelaide_of_Saxe-Meiningen property:country_of_citizenship ?n . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q183
(Q57645,P27,c(Q1048835))
action count
action filter_type
action find
entity Q57645
relation P27
type Q1048835
[ANSWER]
['Q57645', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Q57645 property:P27 ?n . ?n rdf:type ontology:Q1048835 }
Germany
1
action count
action filter_type
action find
entity Adelaide of Saxe-Meiningen
relation country of citizenship
type political territorial entity
['Adelaide of Saxe-Meiningen', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Adelaide_of_Saxe-Meiningen property:country_of_citizenship ?n . ?n rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1635693 Q21622558
P47 P17
Q1048835
USER
Which political territories are 2014 People's Choice Classic located in or are bordered by Allín ?
OR((Q21622558,P17,c(Q1048835)), (Q1635693,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q21622558
relation P17
action find
entity Q1635693
relation P47
type Q1048835
{'OR': [['Q21622558', 'P17', {'concept': 'Q1048835'}], ['Q1635693', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q21622558 property:P17 ?q } UNION { resource:Q1635693 property:P47 ?q } } . ?q rdf:type ontology:Q1048835 }
Allín 2014 People's Choice Classic
action filter_type
action union
action find
entity 2014 People's Choice Classic
relation country
action find
entity Allín
relation shares border with
type political territorial entity
{'OR': [["2014 People's Choice Classic", 'country', {'concept': 'political territorial entity'}], ['Allín', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:2014_People's_Choice_Classic property:country ?q } UNION { resource:Allín property:shares_border_with ?q } } . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1133148 Q1636186 Q1647918 Q1636180 Q408 Q956415
SYSTEM
Yerri, Abárzuza, Metauten, Améscoa Baja, Australia, Igúzquiza
Q1133148 Q1636186 Q1647918 Q1636180 Q408 Q956415
OR((Q21622558,P17,c(Q1048835)), (Q1635693,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q21622558
relation P17
action find
entity Q1635693
relation P47
type Q1048835
[ANSWERS] are 2014 People's Choice Classic located in or are bordered by Allín
{'OR': [['Q21622558', 'P17', {'concept': 'Q1048835'}], ['Q1635693', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q21622558 property:P17 ?q } UNION { resource:Q1635693 property:P47 ?q } } . ?q rdf:type ontology:Q1048835 }
Yerri Abárzuza Metauten Améscoa Baja Australia Igúzquiza
Yerri, Abárzuza, Metauten, Améscoa Baja, Australia and Igúzquiza are 2014 People's Choice Classic located in or are bordered by Allín
Yerri Abárzuza Metauten Améscoa Baja Australia Igúzquiza
action filter_type
action union
action find
entity 2014 People's Choice Classic
relation country
action find
entity Allín
relation shares border with
type political territorial entity
{'OR': [["2014 People's Choice Classic", 'country', {'concept': 'political territorial entity'}], ['Allín', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:2014_People's_Choice_Classic property:country ?q } UNION { resource:Allín property:shares_border_with ?q } } . ?q rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q664
P122
Q151885 Q4164871 Q1048835
USER
How many political territories have more number of concepts or positions as government than New Zealand ?
(c(Q1048835),P122,c(Q151885)|c(Q4164871))
action count
action greater
action union
action find_tuple_counts
relation P122
type Q1048835
type Q151885
action find_tuple_counts
relation P122
type Q1048835
type Q4164871
action count
action filter_multi_types
action find
entity Q664
relation P122
type Q151885
type Q4164871
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q151885'}, {'concept': 'Q4164871'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { FILTER ( ?b > ?w ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { resource:Q664 property:P122 ?l . { { ?l rdf:type ontology:Q151885 } UNION { ?l rdf:type ontology:Q4164871 } } } } . { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?b ) WHERE { VALUES ( ?v ) { ( ontology:Q151885 ) ( ontology:Q4164871 ) } . ?r rdf:type ?v } GROUP BY ?j } }
New Zealand
action count
action greater
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type concept
action find_tuple_counts
relation basic form of government
type political territorial entity
type position
action count
action filter_multi_types
action find
entity New Zealand
relation basic form of government
type concept
type position
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'concept'}, {'concept': 'position'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { FILTER ( ?b > ?w ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { resource:New_Zealand property:basic_form_of_government ?l . { { ?l rdf:type ontology:concept } UNION { ?l rdf:type ontology:position } } } } . { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?b ) WHERE { VALUES ( ?v ) { ( ontology:concept ) ( ontology:position ) } . ?r rdf:type ?v } GROUP BY ?j } }
[]
concept position political territorial entity
SYSTEM
3
Q641138 Q1925048 Q468378
(c(Q1048835),P122,c(Q151885)|c(Q4164871))
action count
action greater
action union
action find_tuple_counts
relation P122
type Q1048835
type Q151885
action find_tuple_counts
relation P122
type Q1048835
type Q4164871
action count
action filter_multi_types
action find
entity Q664
relation P122
type Q151885
type Q4164871
[ANSWER]
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q151885'}, {'concept': 'Q4164871'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { FILTER ( ?b > ?w ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { resource:Q664 property:P122 ?l . { { ?l rdf:type ontology:Q151885 } UNION { ?l rdf:type ontology:Q4164871 } } } } . { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?b ) WHERE { VALUES ( ?v ) { ( ontology:Q151885 ) ( ontology:Q4164871 ) } . ?r rdf:type ?v } GROUP BY ?j } }
Duchy of Cleves San Pedro Partido County of Hoya
3
action count
action greater
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type concept
action find_tuple_counts
relation basic form of government
type political territorial entity
type position
action count
action filter_multi_types
action find
entity New Zealand
relation basic form of government
type concept
type position
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'concept'}, {'concept': 'position'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { FILTER ( ?b > ?w ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { resource:New_Zealand property:basic_form_of_government ?l . { { ?l rdf:type ontology:concept } UNION { ?l rdf:type ontology:position } } } } . { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?b ) WHERE { VALUES ( ?v ) { ( ontology:concept ) ( ontology:position ) } . ?r rdf:type ?v } GROUP BY ?j } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q79965
P122
Q151885 Q4164871 Q1048835
USER
And what about Golden Horde?
(c(Q1048835),P122,c(Q151885)|c(Q4164871))
action count
action greater
action union
action find_tuple_counts
relation P122
type Q1048835
type Q151885
action find_tuple_counts
relation P122
type Q1048835
type Q4164871
action count
action filter_multi_types
action find
entity Q79965
relation P122
type Q151885
type Q4164871
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q151885'}, {'concept': 'Q4164871'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) ?p WHERE { ?a rdf:type ?h . VALUES ( ?h ) { ( ontology:Q151885 ) ( ontology:Q4164871 ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { resource:Q79965 property:P122 ?v . { { ?v rdf:type ontology:Q151885 } UNION { ?v rdf:type ontology:Q4164871 } } } } . FILTER ( ?z > ?w ) }
Golden Horde
action count
action greater
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type concept
action find_tuple_counts
relation basic form of government
type political territorial entity
type position
action count
action filter_multi_types
action find
entity Golden Horde
relation basic form of government
type concept
type position
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'concept'}, {'concept': 'position'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) ?p WHERE { ?a rdf:type ?h . VALUES ( ?h ) { ( ontology:concept ) ( ontology:position ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { resource:Golden_Horde property:basic_form_of_government ?v . { { ?v rdf:type ontology:concept } UNION { ?v rdf:type ontology:position } } } } . FILTER ( ?z > ?w ) }
[]
concept position political territorial entity
SYSTEM
3
Q641138 Q1925048 Q468378
(c(Q1048835),P122,c(Q151885)|c(Q4164871))
action count
action greater
action union
action find_tuple_counts
relation P122
type Q1048835
type Q151885
action find_tuple_counts
relation P122
type Q1048835
type Q4164871
action count
action filter_multi_types
action find
entity Q79965
relation P122
type Q151885
type Q4164871
[ANSWER]
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q151885'}, {'concept': 'Q4164871'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) ?p WHERE { ?a rdf:type ?h . VALUES ( ?h ) { ( ontology:Q151885 ) ( ontology:Q4164871 ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { resource:Q79965 property:P122 ?v . { { ?v rdf:type ontology:Q151885 } UNION { ?v rdf:type ontology:Q4164871 } } } } . FILTER ( ?z > ?w ) }
Duchy of Cleves San Pedro Partido County of Hoya
3
action count
action greater
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type concept
action find_tuple_counts
relation basic form of government
type political territorial entity
type position
action count
action filter_multi_types
action find
entity Golden Horde
relation basic form of government
type concept
type position
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'concept'}, {'concept': 'position'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) ?p WHERE { ?a rdf:type ?h . VALUES ( ?h ) { ( ontology:concept ) ( ontology:position ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { resource:Golden_Horde property:basic_form_of_government ?v . { { ?v rdf:type ontology:concept } UNION { ?v rdf:type ontology:position } } } } . FILTER ( ?z > ?w ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q238
P530
Q1048835 Q15617994
USER
How many administrative territories have ambassadorial relations with approximately the same number of political territories as San Marino ?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q238
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?v ) AS ?x ) WHERE { ?s property:P530 ?v . ?s rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { resource:Q238 property:P530 ?c . ?c rdf:type ontology:Q15617994 } } . FILTER ( ?x = ?t ) }
San Marino
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity San Marino
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?v ) AS ?x ) WHERE { ?s property:diplomatic_relation ?v . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { resource:San_Marino property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?x = ?t ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
124
Q702 Q804 Q800 Q805 Q419 Q668 Q414 Q55 Q262 Q148 Q783 Q265 Q37 Q712 Q717 Q837 Q399 Q398 Q657 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q32 Q31 Q924 Q928 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q184 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q117 Q754 Q750 Q213 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q858 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q238
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?v ) AS ?x ) WHERE { ?s property:P530 ?v . ?s rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { resource:Q238 property:P530 ?c . ?c rdf:type ontology:Q15617994 } } . FILTER ( ?x = ?t ) }
Federated States of Micronesia Panama Costa Rica Yemen Peru India Argentina Netherlands Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Venezuela Nepal Armenia Bahrain Chad Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Luxembourg Belgium Tanzania Philippines Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Oman Belarus Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ghana Trinidad and Tobago Bolivia Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Syria Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
124
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity San Marino
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?v ) AS ?x ) WHERE { ?s property:diplomatic_relation ?v . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { resource:San_Marino property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?x = ?t ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P706
Q2221906 Q1267889 Q1048835
USER
Which political territories are located in min number of geographic locations and waterways ?
(c(Q1048835),P706,c(Q2221906)|c(Q1267889))
action argmin
action union
action find_tuple_counts
relation P706
type Q1048835
type Q2221906
action find_tuple_counts
relation P706
type Q1048835
type Q1267889
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q2221906'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?l ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) ?s WHERE { { ?s property:P706 ?d . ?s rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q1267889 } UNION { ?s property:P706 ?d . ?s rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q2221906 } } GROUP BY ?s } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) ?b WHERE { { ?b property:P706 ?i . ?b rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q2221906 } UNION { ?b property:P706 ?i . ?b rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q1267889 } } GROUP BY ?b } . FILTER ( ?g = ?x ) }
action argmin
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type geographic location
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type waterway
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'geographic location'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?l ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) ?s WHERE { { ?s property:located_on_terrain_feature ?d . ?s rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:waterway } UNION { ?s property:located_on_terrain_feature ?d . ?s rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:geographic_location } } GROUP BY ?s } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) ?b WHERE { { ?b property:located_on_terrain_feature ?i . ?b rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:geographic_location } UNION { ?b property:located_on_terrain_feature ?i . ?b rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:waterway } } GROUP BY ?b } . FILTER ( ?g = ?x ) }
[]
geographic location waterway political territorial entity
Q691 Q769 Q9676
SYSTEM
Papua New Guinea, Grenada, Isle of Man
Q927498 Q6661154 Q1747689 Q983465 Q943922 Q983461 Q753702 Q950889 Q385923 Q49567 Q52626 Q847324 Q847321 Q850989 Q983467 Q743716 Q734805 Q555140 Q983463 Q13737 Q493017 Q950940 Q669078 Q851224 Q950951 Q843868 Q945653 Q37362 Q715970 Q595424 Q7198529 Q832991 Q13751 Q13752 Q975679 Q601112 Q984496 Q743741 Q988714 Q596885 Q941533 Q783498 Q692920 Q850939 Q988702 Q2451327 Q925773 Q851011 Q1823 Q13844 Q611123 Q233337 Q987394 Q691 Q899884 Q837121 Q950901 Q837125 Q847317 Q983633 Q491786 Q983631 Q3724 Q983635 Q8583 Q652988 Q832967 Q185409 Q769 Q9676 Q984485 Q168159 Q983625 Q983628 Q8593 Q656449 Q988688 Q213361 Q984493 Q984491 Q984499 Q3396832 Q9337 Q988696 Q943948 Q697126 Q616408 Q610838 Q920971
(c(Q1048835),P706,c(Q2221906)|c(Q1267889))
action argmin
action union
action find_tuple_counts
relation P706
type Q1048835
type Q2221906
action find_tuple_counts
relation P706
type Q1048835
type Q1267889
[ANSWERS] are located in min number of geographic locations and waterways
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q2221906'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?l ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) ?s WHERE { { ?s property:P706 ?d . ?s rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q1267889 } UNION { ?s property:P706 ?d . ?s rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q2221906 } } GROUP BY ?s } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) ?b WHERE { { ?b property:P706 ?i . ?b rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q2221906 } UNION { ?b property:P706 ?i . ?b rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q1267889 } } GROUP BY ?b } . FILTER ( ?g = ?x ) }
Llucmajor Llanddeusant, Carmarthenshire Ancient Rome Santa Eulària des Riu Sineu Ferreries East New Britain Consell Alcúdia Manacor Formentera Alaior Esporles Campanet Montuïri Campos Sant Antoni de Portmany Capileira Sant Llorenç des Cardassar Basilan Andratx Marratxí Maria de la Salut Costitx Escorca Wrexham County Borough Es Mercadal Akrotiri and Dhekelia Artà Muro, Majorca Pistyll Sóller Biliran Bohol Vilafranca de Bonany Pollença Selva Felanitx Lloret de Vistalegre Blaenau Gwent County Borough Es Castell Ses Salines Sant Joan Alaró Estellencs Sé Porreres Algaida Aceh Leyte Petra, Majorca Deià Sencelles Papua New Guinea Ciutadella de Menorca Binissalem Fornalutx Bunyola Lloseta Santanyí Calvià Santa Eugènia West Java Province Sant Josep de sa Talaia Vulkaneifel Búger Valldemossa Llubí Grenada Isle of Man Es Migjorn Gran Anglesey Puigpunyent Sant Joan de Labritja Mayen-Koblenz Ariany, Majorca Inca Pembrokeshire Sa Pobla Santa Margalida Sant Lluís Tudweiliog Flemish Region Mancor de la Vall Santa Maria del Camí Bridgend County Borough Banyalbufar Son Servera Capdepera
Papua New Guinea, Grenada and Isle of Man are located in min number of geographic locations and waterways
Papua New Guinea Grenada Isle of Man
action argmin
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type geographic location
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type waterway
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'geographic location'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?l ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) ?s WHERE { { ?s property:located_on_terrain_feature ?d . ?s rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:waterway } UNION { ?s property:located_on_terrain_feature ?d . ?s rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:geographic_location } } GROUP BY ?s } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) ?b WHERE { { ?b property:located_on_terrain_feature ?i . ?b rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:geographic_location } UNION { ?b property:located_on_terrain_feature ?i . ?b rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:waterway } } GROUP BY ?b } . FILTER ( ?g = ?x ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P706
Q553036 Q2221906 Q1048835
USER
How many political territories are located in approximately 1 natural region of Germanys and geographic locations ?
(c(Q1048835),P706,c(Q553036)|c(Q2221906))
action count
action approx
action union
action find_tuple_counts
relation P706
type Q1048835
type Q553036
action find_tuple_counts
relation P706
type Q1048835
type Q2221906
value 1
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q553036'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { FILTER ( ?j = 1 ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) ?d WHERE { { ?d property:P706 ?e . ?d rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q553036 } UNION { ?d property:P706 ?e . ?d rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q2221906 } } GROUP BY ?d } }
action count
action approx
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type natural region of Germany
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type geographic location
value 1
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'natural region of Germany'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { FILTER ( ?j = 1 ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) ?d WHERE { { ?d property:located_on_terrain_feature ?e . ?d rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:natural_region_of_Germany } UNION { ?d property:located_on_terrain_feature ?e . ?d rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:geographic_location } } GROUP BY ?d } }
[]
natural region of Germany geographic location political territorial entity
SYSTEM
13
Q13353 Q6139 Q168856 Q5785 Q25228 Q8583 Q170213 Q766 Q8593 Q18221 Q778 Q5700 Q25305
(c(Q1048835),P706,c(Q553036)|c(Q2221906))
action count
action approx
action union
action find_tuple_counts
relation P706
type Q1048835
type Q553036
action find_tuple_counts
relation P706
type Q1048835
type Q2221906
value 1
[ANSWER]
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q553036'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { FILTER ( ?j = 1 ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) ?d WHERE { { ?d property:P706 ?e . ?d rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q553036 } UNION { ?d property:P706 ?e . ?d rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q2221906 } } GROUP BY ?d } }
Montserrat Havelland Chernivtsi Oblast Cayman Islands Anguilla Vulkaneifel Zakarpattia Oblast Jamaica Mayen-Koblenz Turks and Caicos Islands The Bahamas Lapland British Virgin Islands
13
action count
action approx
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type natural region of Germany
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type geographic location
value 1
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'natural region of Germany'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { FILTER ( ?j = 1 ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) ?d WHERE { { ?d property:located_on_terrain_feature ?e . ?d rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:natural_region_of_Germany } UNION { ?d property:located_on_terrain_feature ?e . ?d rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:geographic_location } } GROUP BY ?d } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6892397 Q5112
P19 P190
Q56061
USER
Which administrative territories are twin cities of Adelaide or were Mohammad Salim born ?
OR((Q5112,P190,c(Q56061)), (Q6892397,P19,c(Q56061)))
action filter_type
action union
action find
entity Q5112
relation P190
action find
entity Q6892397
relation P19
type Q56061
{'OR': [['Q5112', 'P190', {'concept': 'Q56061'}], ['Q6892397', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . { { resource:Q5112 property:P190 ?r } UNION { resource:Q6892397 property:P19 ?r } } }
Mohammad Salim Adelaide
action filter_type
action union
action find
entity Adelaide
relation sister city
action find
entity Mohammad Salim
relation place of birth
type administrative territorial entity
{'OR': [['Adelaide', 'sister city', {'concept': 'administrative territorial entity'}], ['Mohammad Salim', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . { { resource:Adelaide property:sister_city ?r } UNION { resource:Mohammad_Salim property:place_of_birth ?r } } }
[]
administrative territorial entity
Q61092 Q485329 Q8678 Q243325 Q2211 Q79990 Q209801
SYSTEM
George Town, Ferrol, Rio de Janeiro, Khulna, Malmö, Christchurch, Himeji
Q61092 Q485329 Q8678 Q243325 Q2211 Q79990 Q209801
OR((Q5112,P190,c(Q56061)), (Q6892397,P19,c(Q56061)))
action filter_type
action union
action find
entity Q5112
relation P190
action find
entity Q6892397
relation P19
type Q56061
[ANSWERS] are twin cities of Adelaide or were Mohammad Salim born
{'OR': [['Q5112', 'P190', {'concept': 'Q56061'}], ['Q6892397', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . { { resource:Q5112 property:P190 ?r } UNION { resource:Q6892397 property:P19 ?r } } }
George Town Ferrol Rio de Janeiro Khulna Malmö Christchurch Himeji
George Town, Ferrol, Rio de Janeiro, Khulna, Malmö, Christchurch and Himeji are twin cities of Adelaide or were Mohammad Salim born
George Town Ferrol Rio de Janeiro Khulna Malmö Christchurch Himeji
action filter_type
action union
action find
entity Adelaide
relation sister city
action find
entity Mohammad Salim
relation place of birth
type administrative territorial entity
{'OR': [['Adelaide', 'sister city', {'concept': 'administrative territorial entity'}], ['Mohammad Salim', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . { { resource:Adelaide property:sister_city ?r } UNION { resource:Mohammad_Salim property:place_of_birth ?r } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q8678
P190
Q13220204 Q1048835
USER
How many administrative country subdivisions and political territories are sister towns of Rio de Janeiro ?
(Q8678,P190,c(Q13220204)) (Q8678,P190,c(Q1048835))
action count
action union
action filter_type
action find
entity Q8678
relation P190
type Q13220204
action filter_type
action find
entity Q8678
relation P190
type Q1048835
['Q8678', 'P190', {'concept': 'Q13220204'}] ['Q8678', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) WHERE { { resource:Q8678 property:P190 ?j . ?j rdf:type ontology:Q1048835 } UNION { resource:Q8678 property:P190 ?j . ?j rdf:type ontology:Q13220204 } }
Rio de Janeiro
action count
action union
action filter_type
action find
entity Rio de Janeiro
relation sister city
type second-level administrative country subdivision
action filter_type
action find
entity Rio de Janeiro
relation sister city
type political territorial entity
['Rio de Janeiro', 'sister city', {'concept': 'second-level administrative country subdivision'}] ['Rio de Janeiro', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) WHERE { { resource:Rio_de_Janeiro property:sister_city ?j . ?j rdf:type ontology:political_territorial_entity } UNION { resource:Rio_de_Janeiro property:sister_city ?j . ?j rdf:type ontology:second-level_administrative_country_subdivision } }
[]
second-level administrative country subdivision political territorial entity
SYSTEM
3 administrative country subdivisions and 2 political territories
Q7903 Q917330 Q131620 Q200459 Q622836
(Q8678,P190,c(Q13220204)) (Q8678,P190,c(Q1048835))
action count
action union
action filter_type
action find
entity Q8678
relation P190
type Q13220204
action filter_type
action find
entity Q8678
relation P190
type Q1048835
[ANSWER]
['Q8678', 'P190', {'concept': 'Q13220204'}] ['Q8678', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) WHERE { { resource:Q8678 property:P190 ?j . ?j rdf:type ontology:Q1048835 } UNION { resource:Q8678 property:P190 ?j . ?j rdf:type ontology:Q13220204 } }
Casablanca Santo Tirso Municipality Natal Póvoa de Varzim Teresópolis
3 administrative country subdivisions and 2 political territories
action count
action union
action filter_type
action find
entity Rio de Janeiro
relation sister city
type second-level administrative country subdivision
action filter_type
action find
entity Rio de Janeiro
relation sister city
type political territorial entity
['Rio de Janeiro', 'sister city', {'concept': 'second-level administrative country subdivision'}] ['Rio de Janeiro', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) WHERE { { resource:Rio_de_Janeiro property:sister_city ?j . ?j rdf:type ontology:political_territorial_entity } UNION { resource:Rio_de_Janeiro property:sister_city ?j . ?j rdf:type ontology:second-level_administrative_country_subdivision } }
[]