Simple Question (Direct)
Simple Question
Q3327089
P641
Q349
USER
What was the sport that Moise Kandé was a part of ?
(Q3327089,P641,c(Q349))
action filter_type
action find
entity Q3327089
relation P641
type Q349
['Q3327089', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q3327089 property:P641 ?f . ?f rdf:type ontology:Q349 }
Moise Kandé
action filter_type
action find
entity Moise Kandé
relation sport
type sport
['Moise Kandé', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:Moise_Kandé property:sport ?f . ?f rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q3327089,P641,c(Q349))
action filter_type
action find
entity Q3327089
relation P641
type Q349
The sport that Moise Kandé was a part of was the [ANSWER]
['Q3327089', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q3327089 property:P641 ?f . ?f rdf:type ontology:Q349 }
association football
The sport that Moise Kandé was a part of was the association football
association football
action filter_type
action find
entity Moise Kandé
relation sport
type sport
['Moise Kandé', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:Moise_Kandé property:sport ?f . ?f rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2736
P2416
Q502895
USER
Which people participated in that sport ?
(c(Q502895),P2416,Q2736)
action filter_type
action find_reverse
entity Q2736
relation P2416
type Q502895
[{'concept': 'Q502895'}, 'P2416', 'Q2736']
SELECT DISTINCT ?g WHERE { ?g property:P2416 resource:Q2736 . ?g rdf:type ontology:Q502895 }
association football
action filter_type
action find_reverse
entity association football
relation sports discipline competed in
type common name
[{'concept': 'common name'}, 'sports discipline competed in', 'association football']
SELECT DISTINCT ?g WHERE { ?g property:sports_discipline_competed_in resource:association_football . ?g rdf:type ontology:common_name }
[]
common name
Q22998602 Q3939068 Q1975921
SYSTEM
Maximilian Mittelstädt, Roberto Policano, Agustín Gómez Pagóla
Q23902692 Q3939068 Q22687929 Q22998602 Q877207 Q1975921 Q23095388 Q24006307
(c(Q502895),P2416,Q2736)
action filter_type
action find_reverse
entity Q2736
relation P2416
type Q502895
[ANSWERS] participated in that sport
[{'concept': 'Q502895'}, 'P2416', 'Q2736']
SELECT DISTINCT ?g WHERE { ?g property:P2416 resource:Q2736 . ?g rdf:type ontology:Q502895 }
Florian Kohls Roberto Policano Pedro Confesor Maximilian Mittelstädt Horst Bertram Agustín Gómez Pagóla Eberhard Dallagrazia Lion Schweers
Maximilian Mittelstädt, Roberto Policano and Agustín Gómez Pagóla participated in that sport
Maximilian Mittelstädt Roberto Policano Agustín Gómez Pagóla
action filter_type
action find_reverse
entity association football
relation sports discipline competed in
type common name
[{'concept': 'common name'}, 'sports discipline competed in', 'association football']
SELECT DISTINCT ?g WHERE { ?g property:sports_discipline_competed_in resource:association_football . ?g rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q5398426
USER
Which television series did max number of people do the dubbing for ?
(c(Q5398426),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q5398426
type Q502895
[{'concept': 'Q5398426'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?n ) { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?f ) WHERE { ?t property:P725 ?v . ?t rdf:type ontology:Q5398426 . ?v rdf:type ontology:Q502895 } GROUP BY ?t } } . FILTER ( ?x = ?n ) . { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?x ) WHERE { ?s property:P725 ?u . ?s rdf:type ontology:Q5398426 . ?u rdf:type ontology:Q502895 } GROUP BY ?s } }
action argmax
action find_tuple_counts
relation voice actor
type television series
type common name
[{'concept': 'television series'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?n ) { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?f ) WHERE { ?t property:voice_actor ?v . ?t rdf:type ontology:television_series . ?v rdf:type ontology:common_name } GROUP BY ?t } } . FILTER ( ?x = ?n ) . { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?x ) WHERE { ?s property:voice_actor ?u . ?s rdf:type ontology:television_series . ?u rdf:type ontology:common_name } GROUP BY ?s } }
[]
common name television series
Q386361
SYSTEM
Devil May Cry: The Animated Series
Q386361
(c(Q5398426),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q5398426
type Q502895
Max number of people did the dubbing for the [ANSWER]
[{'concept': 'Q5398426'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?n ) { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?f ) WHERE { ?t property:P725 ?v . ?t rdf:type ontology:Q5398426 . ?v rdf:type ontology:Q502895 } GROUP BY ?t } } . FILTER ( ?x = ?n ) . { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?x ) WHERE { ?s property:P725 ?u . ?s rdf:type ontology:Q5398426 . ?u rdf:type ontology:Q502895 } GROUP BY ?s } }
Devil May Cry: The Animated Series
Max number of people did the dubbing for the Devil May Cry: The Animated Series
Devil May Cry: The Animated Series
action argmax
action find_tuple_counts
relation voice actor
type television series
type common name
[{'concept': 'television series'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?n ) { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?f ) WHERE { ?t property:voice_actor ?v . ?t rdf:type ontology:television_series . ?v rdf:type ontology:common_name } GROUP BY ?t } } . FILTER ( ?x = ?n ) . { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?x ) WHERE { ?s property:voice_actor ?u . ?s rdf:type ontology:television_series . ?u rdf:type ontology:common_name } GROUP BY ?s } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q386361
P449
Q4830453
USER
Which network was the first to air that television series ?
(Q386361,P449,c(Q4830453))
action filter_type
action find
entity Q386361
relation P449
type Q4830453
['Q386361', 'P449', {'concept': 'Q4830453'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q4830453 . resource:Q386361 property:P449 ?x }
Devil May Cry: The Animated Series
action filter_type
action find
entity Devil May Cry: The Animated Series
relation original network
type business enterprise
['Devil May Cry: The Animated Series', 'original network', {'concept': 'business enterprise'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:business_enterprise . resource:Devil_May_Cry:_The_Animated_Series property:original_network ?x }
[]
business enterprise
Q775216
SYSTEM
WOWOW
Q775216
(Q386361,P449,c(Q4830453))
action filter_type
action find
entity Q386361
relation P449
type Q4830453
[ANSWER] was the first to air that television series
['Q386361', 'P449', {'concept': 'Q4830453'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q4830453 . resource:Q386361 property:P449 ?x }
WOWOW
WOWOW was the first to air that television series
WOWOW
action filter_type
action find
entity Devil May Cry: The Animated Series
relation original network
type business enterprise
['Devil May Cry: The Animated Series', 'original network', {'concept': 'business enterprise'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:business_enterprise . resource:Devil_May_Cry:_The_Animated_Series property:original_network ?x }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1408
Q486972 Q4830453
USER
Which human settlements are min number of business enterprises permitted to broadcast as per their license ?
(c(Q4830453),P1408,Q2656942)
action argmin
action find_reverse_tuple_counts
relation P1408
type Q486972
type Q4830453
[{'concept': 'Q4830453'}, 'P1408', 'Q2656942']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?t ) WHERE { ?m rdf:type ontology:Q486972 . ?o rdf:type ontology:Q4830453 . ?o property:P1408 ?m } GROUP BY ?m } . FILTER ( ?t = ?n ) . { SELECT DISTINCT ( MIN ( ?f ) AS ?n ) { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?f ) WHERE { ?z property:P1408 ?k . ?z rdf:type ontology:Q4830453 . ?k rdf:type ontology:Q486972 } GROUP BY ?k } } }
action argmin
action find_reverse_tuple_counts
relation licensed to broadcast to
type human settlement
type business enterprise
[{'concept': 'business enterprise'}, 'licensed to broadcast to', 'Mableton']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?t ) WHERE { ?m rdf:type ontology:human_settlement . ?o rdf:type ontology:business_enterprise . ?o property:licensed_to_broadcast_to ?m } GROUP BY ?m } . FILTER ( ?t = ?n ) . { SELECT DISTINCT ( MIN ( ?f ) AS ?n ) { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?f ) WHERE { ?z property:licensed_to_broadcast_to ?k . ?z rdf:type ontology:business_enterprise . ?k rdf:type ontology:human_settlement } GROUP BY ?k } } }
[]
human settlement business enterprise
Q254221
SYSTEM
Schladming
Q254221
(c(Q4830453),P1408,Q2656942)
action argmin
action find_reverse_tuple_counts
relation P1408
type Q486972
type Q4830453
[ANSWER] is min number of business enterprises permitted to broadcast as per their license
[{'concept': 'Q4830453'}, 'P1408', 'Q2656942']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?t ) WHERE { ?m rdf:type ontology:Q486972 . ?o rdf:type ontology:Q4830453 . ?o property:P1408 ?m } GROUP BY ?m } . FILTER ( ?t = ?n ) . { SELECT DISTINCT ( MIN ( ?f ) AS ?n ) { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?f ) WHERE { ?z property:P1408 ?k . ?z rdf:type ontology:Q4830453 . ?k rdf:type ontology:Q486972 } GROUP BY ?k } } }
Schladming
Schladming is min number of business enterprises permitted to broadcast as per their license
Schladming
action argmin
action find_reverse_tuple_counts
relation licensed to broadcast to
type human settlement
type business enterprise
[{'concept': 'business enterprise'}, 'licensed to broadcast to', 'Mableton']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?t ) WHERE { ?m rdf:type ontology:human_settlement . ?o rdf:type ontology:business_enterprise . ?o property:licensed_to_broadcast_to ?m } GROUP BY ?m } . FILTER ( ?t = ?n ) . { SELECT DISTINCT ( MIN ( ?f ) AS ?n ) { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?f ) WHERE { ?z property:licensed_to_broadcast_to ?k . ?z rdf:type ontology:business_enterprise . ?k rdf:type ontology:human_settlement } GROUP BY ?k } } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q254221 Q40
P17
Q1048835
USER
Does that human settlement belong to Austria ?
(Q254221,P17,Q40)
action is_in
entity Q40
action find
entity Q254221
relation P17
['Q254221', 'P17', 'Q40']
ASK WHERE { resource:Q254221 property:P17 resource:Q40 }
Schladming Austria
action is_in
entity Austria
action find
entity Schladming
relation country
['Schladming', 'country', 'Austria']
ASK WHERE { resource:Schladming property:country resource:Austria }
[]
political territorial entity
SYSTEM
YES
(Q254221,P17,Q40)
action is_in
entity Q40
action find
entity Q254221
relation P17
[ANSWER]
['Q254221', 'P17', 'Q40']
ASK WHERE { resource:Q254221 property:P17 resource:Q40 }
Yes
action is_in
entity Austria
action find
entity Schladming
relation country
['Schladming', 'country', 'Austria']
ASK WHERE { resource:Schladming property:country resource:Austria }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P641
Q349 Q500834 Q18608583
USER
Which sports were atmost 1201 tournaments or recurring sporting events a part of ?
(c(Q500834)|c(Q18608583),P641,c(Q349))
action atmost
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q500834
action find_reverse_tuple_counts
relation P641
type Q349
type Q18608583
value 1201
[[{'concept': 'Q500834'}, {'concept': 'Q18608583'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?j ) WHERE { ?a rdf:type ?s . VALUES ( ?s ) { ( ontology:Q18608583 ) ( ontology:Q500834 ) } } GROUP BY ?y } . FILTER ( ?j <= 1201 ) }
action atmost
action union
action find_reverse_tuple_counts
relation sport
type sport
type tournament
action find_reverse_tuple_counts
relation sport
type sport
type recurring sporting event
value 1201
[[{'concept': 'tournament'}, {'concept': 'recurring sporting event'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?j ) WHERE { ?a rdf:type ?s . VALUES ( ?s ) { ( ontology:recurring_sporting_event ) ( ontology:tournament ) } } GROUP BY ?y } . FILTER ( ?j <= 1201 ) }
[]
sport tournament recurring sporting event
Q809831 Q1295867 Q206763
SYSTEM
BASE jumping, pesäpallo, floorball
Q10962 Q1109032 Q4543 Q170737 Q114466 Q12100 Q500050 Q2348250 Q3337306 Q7707 Q193387 Q108429 Q171038 Q191051 Q17163326 Q4808504 Q3844480 Q809831 Q1575010 Q206763 Q133201 Q244700 Q1497658 Q902378 Q1761866 Q192832 Q1148620 Q601972 Q46241 Q83462 Q192937 Q3372565 Q208607 Q188966 Q961015 Q328716 Q131359 Q27672886 Q22857 Q657196 Q11420 Q338208 Q41323 Q738622 Q148636 Q136851 Q2887217 Q7856 Q599204 Q5372 Q5375 Q5377 Q206989 Q5369 Q690676 Q8418 Q31897 Q74542 Q1050588 Q1758324 Q1457676 Q592031 Q1345388 Q102843 Q754586 Q1682809 Q40561 Q42486 Q1295867 Q2483334 Q2922870 Q1143202 Q41466 Q850256 Q204632 Q627165 Q393808 Q213796 Q1866478 Q182570 Q2302906 Q989473 Q1194269 Q2497700 Q231200 Q990637 Q105674 Q215862 Q212845 Q1358545 Q1757181 Q1145338 Q2250158 Q212434 Q43450 Q6034982 Q12834857 Q61065 Q2284014 Q221635 Q4429020 Q2413978 Q13108218 Q4851143 Q14300548 Q1455 Q2215841 Q36908 Q1081491 Q483693 Q389654 Q61465 Q185851 Q4245261 Q624161 Q327742 Q213711 Q271277 Q3177899 Q376040 Q4347112 Q5465793 Q3930 Q797108 Q963312 Q2167372 Q130949 Q535116 Q2360406 Q20856109 Q16996906 Q213934 Q1078835 Q838781 Q26787631 Q1899731 Q201965 Q943526 Q647559 Q1541373 Q606060 Q1150656 Q1063445 Q134211 Q1734 Q31920 Q6140386 Q3325635 Q207703 Q2701632 Q1875777 Q1358925 Q1748406 Q667692 Q183018 Q1622659 Q1421697 Q201252 Q177275 Q32112 Q2736 Q14405929 Q1129021 Q1199515 Q178678 Q17988507 Q6350707 Q159992 Q3924425 Q3341285 Q210778 Q192420 Q1784241 Q1188693 Q204686 Q1055193 Q124100 Q2440459 Q429006
(c(Q500834)|c(Q18608583),P641,c(Q349))
action atmost
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q500834
action find_reverse_tuple_counts
relation P641
type Q349
type Q18608583
value 1201
[ANSWERS] were atmost 1201 tournaments or recurring sporting events a part of
[[{'concept': 'Q500834'}, {'concept': 'Q18608583'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?j ) WHERE { ?a rdf:type ?s . VALUES ( ?s ) { ( ontology:Q18608583 ) ( ontology:Q500834 ) } } GROUP BY ?y } . FILTER ( ?j <= 1201 ) }
rugby league college football beach volleyball long jump mixed martial arts fencing cross country running team time trial yachting water polo croquet archery softball windsurfing motorcycle racing snocross rink bandy BASE jumping para rowing floorball squash Ultimate memory sport equestrian sport puroresu paintball Finswimming Camogie drag racing weightlifting korfball Kettlebell lifting kung fu contract bridge women's boxing motorcycle sport professional wrestling Flying disc games climbing medley swimming judo giant slalom skiing American football dancesport Kabaddi curling women's basketball rallying rallycross basketball cricket golf shooting sport baseball canoe polo handball natural track luge para-alpine skiing fistball stock car racing rackets wingsuit flying greyhound racing tug of war racquetball pair skating sumo wrestling pesäpallo Valencian pilota boxe roque ice hockey shinty Gaelic football Harri-jasotze Dog agility powerlifting American handball discus throw Box lacrosse international draughts harness racing Aizkolaritza netball Broomball running motocross Basque pelota arena football paralympic athletics Adventure racing five-a-side football Olympic sport gymnastics Inline skating strength training water sport Contact sport track cycling competition aerobatics paralympic swimming gymnastics balkline and straight rail skating field hockey cycle sport mountaineering football parkour Greco-Roman wrestling rhythmic gymnastics lacrosse touring car racing gliding relay race hurling Savate bowling wakeboarding strength athletics CP football table tennis jeu de paume Sledge hockey fell running skiing beach handball real tennis canoeing Indoor American football canoeing and kayaking Powerchair Football eventing K-1 Frisian handball Nordic combined Castell Goalball sport climbing women's association football wheelchair curling nine-ball polo volleyball swimming Kitō-ryū Valencian trinquet rodeo muggle quidditch air racing speed skiing roller hockey (quad) Nordic walking bandy hockey Chilean rodeo pankration bobsleigh boxing association football high diving super giant slalom skiing formula racing kick boxing women's tennis Kalari surfing combined track and field events cue sports beach soccer Kart racing korbball mind sport winter sport pallone bodybuilding wheelchair fencing Duathlon
BASE jumping, pesäpallo and floorball were atmost 1201 tournaments or recurring sporting events a part of
BASE jumping pesäpallo floorball
action atmost
action union
action find_reverse_tuple_counts
relation sport
type sport
type tournament
action find_reverse_tuple_counts
relation sport
type sport
type recurring sporting event
value 1201
[[{'concept': 'tournament'}, {'concept': 'recurring sporting event'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?j ) WHERE { ?a rdf:type ?s . VALUES ( ?s ) { ( ontology:recurring_sporting_event ) ( ontology:tournament ) } } GROUP BY ?y } . FILTER ( ?j <= 1201 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1376
Q1048835 Q486972
USER
Which political territories have max number of human settlements have their first city ?
(c(Q486972),P1376,Q188732)
action argmax
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q486972
[{'concept': 'Q486972'}, 'P1376', 'Q188732']
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?n ) { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?h ) WHERE { ?q rdf:type ontology:Q486972 . ?s rdf:type ontology:Q1048835 . ?q property:P1376 ?s } GROUP BY ?s } } . { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?d ) WHERE { ?t property:P1376 ?j . ?t rdf:type ontology:Q486972 . ?j rdf:type ontology:Q1048835 } GROUP BY ?j } . FILTER ( ?d = ?n ) }
action argmax
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type human settlement
[{'concept': 'human settlement'}, 'capital of', 'Gomel Region']
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?n ) { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?h ) WHERE { ?q rdf:type ontology:human_settlement . ?s rdf:type ontology:political_territorial_entity . ?q property:capital_of ?s } GROUP BY ?s } } . { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?d ) WHERE { ?t property:capital_of ?j . ?t rdf:type ontology:human_settlement . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?j } . FILTER ( ?d = ?n ) }
[]
political territorial entity human settlement
Q5455586
SYSTEM
Fitzcarrald
Q5455586
(c(Q486972),P1376,Q188732)
action argmax
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q486972
[ANSWER] have max number of human settlements have their first city
[{'concept': 'Q486972'}, 'P1376', 'Q188732']
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?n ) { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?h ) WHERE { ?q rdf:type ontology:Q486972 . ?s rdf:type ontology:Q1048835 . ?q property:P1376 ?s } GROUP BY ?s } } . { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?d ) WHERE { ?t property:P1376 ?j . ?t rdf:type ontology:Q486972 . ?j rdf:type ontology:Q1048835 } GROUP BY ?j } . FILTER ( ?d = ?n ) }
Fitzcarrald
Fitzcarrald have max number of human settlements have their first city
Fitzcarrald
action argmax
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type human settlement
[{'concept': 'human settlement'}, 'capital of', 'Gomel Region']
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?n ) { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?h ) WHERE { ?q rdf:type ontology:human_settlement . ?s rdf:type ontology:political_territorial_entity . ?q property:capital_of ?s } GROUP BY ?s } } . { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?d ) WHERE { ?t property:capital_of ?j . ?t rdf:type ontology:human_settlement . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?j } . FILTER ( ?d = ?n ) }
[]