Simple Question (Direct)
Simple Question
Q4757932
P27
Q15617994
USER
Which administrative territory does Andrew McCulloch belong to ?
(Q4757932,P27,c(Q15617994))
action filter_type
action find
entity Q4757932
relation P27
type Q15617994
['Q4757932', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q4757932 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
Andrew McCulloch
action filter_type
action find
entity Andrew McCulloch
relation country of citizenship
type designation for an administrative territorial entity
['Andrew McCulloch', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Andrew_McCulloch property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q4757932,P27,c(Q15617994))
action filter_type
action find
entity Q4757932
relation P27
type Q15617994
Andrew McCulloch belongs to [ANSWER]
['Q4757932', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q4757932 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
United Kingdom
Andrew McCulloch belongs to United Kingdom
United Kingdom
action filter_type
action find
entity Andrew McCulloch
relation country of citizenship
type designation for an administrative territorial entity
['Andrew McCulloch', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Andrew_McCulloch property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4757932
P106
Q12737077
USER
What does that person do for a living ?
(Q145,P106,c(Q12737077))
action filter_type
action find
entity Q4757932
relation P106
type Q12737077
['Q145', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q4757932 property:P106 ?y }
Andrew McCulloch
action filter_type
action find
entity Andrew McCulloch
relation occupation
type occupation
['United Kingdom', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Andrew_McCulloch property:occupation ?y }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q145,P106,c(Q12737077))
action filter_type
action find
entity Q4757932
relation P106
type Q12737077
Player [ANSWER] that person does for a living
['Q145', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q4757932 property:P106 ?y }
association football player
Player association football player that person does for a living
association football player
action filter_type
action find
entity Andrew McCulloch
relation occupation
type occupation
['United Kingdom', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Andrew_McCulloch property:occupation ?y }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q191107
P417
Q502895 Q12737077
USER
How many people are the names of person who are the patron saints of more number of occupations than Clare of Assisi ?
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q191107
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?e ) WHERE { ?z property:P417 ?c . ?c rdf:type ontology:Q502895 . ?z rdf:type ontology:Q12737077 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { resource:Q191107 property:P417 ?l . ?l rdf:type ontology:Q502895 } } . FILTER ( ?e > ?g ) }
Clare of Assisi
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Clare of Assisi
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?e ) WHERE { ?z property:patron_saint ?c . ?c rdf:type ontology:common_name . ?z rdf:type ontology:occupation } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { resource:Clare_of_Assisi property:patron_saint ?l . ?l rdf:type ontology:common_name } } . FILTER ( ?e > ?g ) }
[]
common name occupation
SYSTEM
16
Q229190 Q328804 Q166876 Q170547 Q128538 Q183240 Q196653 Q44265 Q192816 Q43982 Q179718 Q43600 Q744884 Q151967 Q200895 Q44248
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q191107
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?e ) WHERE { ?z property:P417 ?c . ?c rdf:type ontology:Q502895 . ?z rdf:type ontology:Q12737077 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { resource:Q191107 property:P417 ?l . ?l rdf:type ontology:Q502895 } } . FILTER ( ?e > ?g ) }
Catherine of Siena John the Evangelist Isidore of Seville Anthony the Great Luke the Evangelist Saint Lucy Saint Veronica Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria Matthew the Apostle Zita Saint Blaise Agatha of Sicily Jerome
16
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Clare of Assisi
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?e ) WHERE { ?z property:patron_saint ?c . ?c rdf:type ontology:common_name . ?z rdf:type ontology:occupation } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { resource:Clare_of_Assisi property:patron_saint ?l . ?l rdf:type ontology:common_name } } . FILTER ( ?e > ?g ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q177903
P417
Q502895 Q12737077
USER
And how about Stephen I of Hungary?
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q177903
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { resource:Q177903 property:P417 ?h . ?h rdf:type ontology:Q502895 } } . FILTER ( ?j > ?m ) . { SELECT DISTINCT ?z ( COUNT ( ?l ) AS ?j ) WHERE { ?l property:P417 ?z . ?l rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q502895 } GROUP BY ?z } }
Stephen I of Hungary
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Stephen I of Hungary
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { resource:Stephen_I_of_Hungary property:patron_saint ?h . ?h rdf:type ontology:common_name } } . FILTER ( ?j > ?m ) . { SELECT DISTINCT ?z ( COUNT ( ?l ) AS ?j ) WHERE { ?l property:patron_saint ?z . ?l rdf:type ontology:occupation . ?z rdf:type ontology:common_name } GROUP BY ?z } }
[]
common name occupation
SYSTEM
54
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q177903
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { resource:Q177903 property:P417 ?h . ?h rdf:type ontology:Q502895 } } . FILTER ( ?j > ?m ) . { SELECT DISTINCT ?z ( COUNT ( ?l ) AS ?j ) WHERE { ?l property:P417 ?z . ?l rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q502895 } GROUP BY ?z } }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
54
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Stephen I of Hungary
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { resource:Stephen_I_of_Hungary property:patron_saint ?h . ?h rdf:type ontology:common_name } } . FILTER ( ?j > ?m ) . { SELECT DISTINCT ?z ( COUNT ( ?l ) AS ?j ) WHERE { ?l property:patron_saint ?z . ?l rdf:type ontology:occupation . ?z rdf:type ontology:common_name } GROUP BY ?z } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4757932
P641
Q349
USER
Which sport did Andrew McCulloch participate in ?
(Q4757932,P641,c(Q349))
action filter_type
action find
entity Q4757932
relation P641
type Q349
['Q4757932', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?a WHERE { resource:Q4757932 property:P641 ?a . ?a rdf:type ontology:Q349 }
Andrew McCulloch
action filter_type
action find
entity Andrew McCulloch
relation sport
type sport
['Andrew McCulloch', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?a WHERE { resource:Andrew_McCulloch property:sport ?a . ?a rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q4757932,P641,c(Q349))
action filter_type
action find
entity Q4757932
relation P641
type Q349
Andrew McCulloch participated in [ANSWER]
['Q4757932', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?a WHERE { resource:Q4757932 property:P641 ?a . ?a rdf:type ontology:Q349 }
association football
Andrew McCulloch participated in association football
association football
action filter_type
action find
entity Andrew McCulloch
relation sport
type sport
['Andrew McCulloch', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?a WHERE { resource:Andrew_McCulloch property:sport ?a . ?a rdf:type ontology:sport }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P366
Q349 Q6671777 Q1076486
USER
How many sports are the main uses of atmost 15 structures or sports venues ?
(c(Q6671777)|c(Q1076486),P366,c(Q349))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q6671777
action find_reverse_tuple_counts
relation P366
type Q349
type Q1076486
value 15
[[{'concept': 'Q6671777'}, {'concept': 'Q1076486'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?t ) WHERE { { ?s property:P366 ?n . ?s rdf:type ontology:Q6671777 . ?n rdf:type ontology:Q349 } UNION { ?s property:P366 ?n . ?n rdf:type ontology:Q349 . ?s rdf:type ontology:Q1076486 } } GROUP BY ?n } . FILTER ( ?t <= 15 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation use
type sport
type structure
action find_reverse_tuple_counts
relation use
type sport
type sports venue
value 15
[[{'concept': 'structure'}, {'concept': 'sports venue'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?t ) WHERE { { ?s property:use ?n . ?s rdf:type ontology:structure . ?n rdf:type ontology:sport } UNION { ?s property:use ?n . ?n rdf:type ontology:sport . ?s rdf:type ontology:sports_venue } } GROUP BY ?n } . FILTER ( ?t <= 15 ) }
[]
sport structure sports venue
SYSTEM
22
Q7856 Q5372 Q8418 Q1734 Q206989 Q14300548 Q183018 Q36908 Q500050 Q1875777 Q108429 Q624161 Q1345388 Q177275 Q206763 Q61065 Q847 Q41466 Q22857 Q1194269 Q41323 Q7291
(c(Q6671777)|c(Q1076486),P366,c(Q349))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q6671777
action find_reverse_tuple_counts
relation P366
type Q349
type Q1076486
value 15
[ANSWER]
[[{'concept': 'Q6671777'}, {'concept': 'Q1076486'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?t ) WHERE { { ?s property:P366 ?n . ?s rdf:type ontology:Q6671777 . ?n rdf:type ontology:Q349 } UNION { ?s property:P366 ?n . ?n rdf:type ontology:Q349 . ?s rdf:type ontology:Q1076486 } } GROUP BY ?n } . FILTER ( ?t <= 15 ) }
rallying basketball handball volleyball shooting sport skating bandy mountaineering cross country running air racing archery gliding greyhound racing bobsleigh floorball water sport tennis ice hockey climbing harness racing American football badminton
22
action count
action atmost
action union
action find_reverse_tuple_counts
relation use
type sport
type structure
action find_reverse_tuple_counts
relation use
type sport
type sports venue
value 15
[[{'concept': 'structure'}, {'concept': 'sports venue'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?t ) WHERE { { ?s property:use ?n . ?s rdf:type ontology:structure . ?n rdf:type ontology:sport } UNION { ?s property:use ?n . ?n rdf:type ontology:sport . ?s rdf:type ontology:sports_venue } } GROUP BY ?n } . FILTER ( ?t <= 15 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q145
P921
Q2342494 Q223393
USER
How many collectables or literary genres were mainly based on United Kingdom ?
(c(Q2342494),P921,Q145) (c(Q223393),P921,Q145)
action count
action union
action filter_type
action find_reverse
entity Q145
relation P921
type Q2342494
action filter_type
action find_reverse
entity Q145
relation P921
type Q223393
[{'concept': 'Q2342494'}, 'P921', 'Q145'] [{'concept': 'Q223393'}, 'P921', 'Q145']
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { VALUES ( ?e ) { ( ontology:Q2342494 ) ( ontology:Q223393 ) } . ?l rdf:type ?e }
United Kingdom
action count
action union
action filter_type
action find_reverse
entity United Kingdom
relation main subject
type collectable
action filter_type
action find_reverse
entity United Kingdom
relation main subject
type literary genre
[{'concept': 'collectable'}, 'main subject', 'United Kingdom'] [{'concept': 'literary genre'}, 'main subject', 'United Kingdom']
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { VALUES ( ?e ) { ( ontology:collectable ) ( ontology:literary_genre ) } . ?l rdf:type ?e }
[]
collectable literary genre
SYSTEM
3
Q27063814 Q4834807 Q26207101
(c(Q2342494),P921,Q145) (c(Q223393),P921,Q145)
action count
action union
action filter_type
action find_reverse
entity Q145
relation P921
type Q2342494
action filter_type
action find_reverse
entity Q145
relation P921
type Q223393
[ANSWER]
[{'concept': 'Q2342494'}, 'P921', 'Q145'] [{'concept': 'Q223393'}, 'P921', 'Q145']
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { VALUES ( ?e ) { ( ontology:Q2342494 ) ( ontology:Q223393 ) } . ?l rdf:type ?e }
Introduction to Administrative Law BBC Domesday Project Dictionary of British cartoonists and caricaturists
3
action count
action union
action filter_type
action find_reverse
entity United Kingdom
relation main subject
type collectable
action filter_type
action find_reverse
entity United Kingdom
relation main subject
type literary genre
[{'concept': 'collectable'}, 'main subject', 'United Kingdom'] [{'concept': 'literary genre'}, 'main subject', 'United Kingdom']
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { VALUES ( ?e ) { ( ontology:collectable ) ( ontology:literary_genre ) } . ?l rdf:type ?e }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q145
P1001
Q192350
USER
Which ministries have jurisdiction over that administrative territory ?
action filter_type
action find_reverse
entity Q145
relation P1001
type Q192350
SELECT DISTINCT ?c WHERE { ?c property:P1001 resource:Q145 . ?c rdf:type ontology:Q192350 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation applies to jurisdiction
type ministry
SELECT DISTINCT ?c WHERE { ?c property:applies_to_jurisdiction resource:United_Kingdom . ?c rdf:type ontology:ministry }
[]
ministry
Q25907383 Q25991767 Q358834
SYSTEM
Department for Exiting the European Union, Department for International Trade, Foreign and Commonwealth Office
Q25907383 Q25991767 Q358834 Q3044721 Q6866602 Q5995 Q1143261
action filter_type
action find_reverse
entity Q145
relation P1001
type Q192350
Department for exiting the European Union, Department for International Trade and Foreign and Commonwealth Office have jurisdiction over that administrative territory
SELECT DISTINCT ?c WHERE { ?c property:P1001 resource:Q145 . ?c rdf:type ontology:Q192350 }
Department for Exiting the European Union Department for International Trade Foreign and Commonwealth Office Department for Environment, Food and Rural Affairs Ministry of Agriculture, Fisheries and Food Cabinet Office Ministry of Defence
Department for exiting the European Union, Department for International Trade and Foreign and Commonwealth Office have jurisdiction over that administrative territory
Department for Exiting the European Union Department for International Trade Foreign and Commonwealth Office
action filter_type
action find_reverse
entity United Kingdom
relation applies to jurisdiction
type ministry
SELECT DISTINCT ?c WHERE { ?c property:applies_to_jurisdiction resource:United_Kingdom . ?c rdf:type ontology:ministry }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P17
Q15617994 Q83620 Q159334
USER
Which administrative territories do max number of thoroughfares or secondary schools belong to ?
(c(Q83620)|c(Q159334),P17,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q83620
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q159334
[[{'concept': 'Q83620'}, {'concept': 'Q159334'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) ?h WHERE { ?e rdf:type ?p . VALUES ( ?p ) { ( ontology:Q83620 ) ( ontology:Q159334 ) } } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) ?k WHERE { ?t rdf:type ?i . VALUES ( ?i ) { ( ontology:Q83620 ) ( ontology:Q159334 ) } } GROUP BY ?k } . FILTER ( ?v = ?d ) }
action argmax
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type secondary school
[[{'concept': 'thoroughfare'}, {'concept': 'secondary school'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) ?h WHERE { ?e rdf:type ?p . VALUES ( ?p ) { ( ontology:thoroughfare ) ( ontology:secondary_school ) } } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) ?k WHERE { ?t rdf:type ?i . VALUES ( ?i ) { ( ontology:thoroughfare ) ( ontology:secondary_school ) } } GROUP BY ?k } . FILTER ( ?v = ?d ) }
[]
designation for an administrative territorial entity thoroughfare secondary school
Q30
SYSTEM
United States of America
Q30
(c(Q83620)|c(Q159334),P17,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q83620
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q159334
[ANSWER] max number of thoroughfares or secondary schools belong to
[[{'concept': 'Q83620'}, {'concept': 'Q159334'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) ?h WHERE { ?e rdf:type ?p . VALUES ( ?p ) { ( ontology:Q83620 ) ( ontology:Q159334 ) } } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) ?k WHERE { ?t rdf:type ?i . VALUES ( ?i ) { ( ontology:Q83620 ) ( ontology:Q159334 ) } } GROUP BY ?k } . FILTER ( ?v = ?d ) }
United States of America
United States of America max number of thoroughfares or secondary schools belong to
United States of America
action argmax
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type secondary school
[[{'concept': 'thoroughfare'}, {'concept': 'secondary school'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) ?h WHERE { ?e rdf:type ?p . VALUES ( ?p ) { ( ontology:thoroughfare ) ( ontology:secondary_school ) } } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) ?k WHERE { ?t rdf:type ?i . VALUES ( ?i ) { ( ontology:thoroughfare ) ( ontology:secondary_school ) } } GROUP BY ?k } . FILTER ( ?v = ?d ) }
[]