Simple Question (Direct)
Simple Question
Q4249442
P19
Q7275
USER
Which state was Pavlo Kutas born in ?
(Q4249442,P19,c(Q7275))
action filter_type
action find
entity Q4249442
relation P19
type Q7275
['Q4249442', 'P19', {'concept': 'Q7275'}]
SELECT DISTINCT ?c WHERE { resource:Q4249442 property:P19 ?c . ?c rdf:type ontology:Q7275 }
Pavlo Kutas
action filter_type
action find
entity Pavlo Kutas
relation place of birth
type state
['Pavlo Kutas', 'place of birth', {'concept': 'state'}]
SELECT DISTINCT ?c WHERE { resource:Pavlo_Kutas property:place_of_birth ?c . ?c rdf:type ontology:state }
[]
state
Q133356
SYSTEM
Ukrainian Soviet Socialist Republic
Q133356
(Q4249442,P19,c(Q7275))
action filter_type
action find
entity Q4249442
relation P19
type Q7275
Pavlo Kutas was born in [ANSWER]
['Q4249442', 'P19', {'concept': 'Q7275'}]
SELECT DISTINCT ?c WHERE { resource:Q4249442 property:P19 ?c . ?c rdf:type ontology:Q7275 }
Ukrainian Soviet Socialist Republic
Pavlo Kutas was born in Ukrainian Soviet Socialist Republic
Ukrainian Soviet Socialist Republic
action filter_type
action find
entity Pavlo Kutas
relation place of birth
type state
['Pavlo Kutas', 'place of birth', {'concept': 'state'}]
SELECT DISTINCT ?c WHERE { resource:Pavlo_Kutas property:place_of_birth ?c . ?c rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4249442
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q133356,P27,c(Q15617994))
action filter_type
action find
entity Q4249442
relation P27
type Q15617994
['Q133356', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q4249442 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Pavlo Kutas
action filter_type
action find
entity Pavlo Kutas
relation country of citizenship
type designation for an administrative territorial entity
['Ukrainian Soviet Socialist Republic', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Pavlo_Kutas property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q212
SYSTEM
Ukraine
Q212
(Q133356,P27,c(Q15617994))
action filter_type
action find
entity Q4249442
relation P27
type Q15617994
The [ANSWER] is the country of citizenship of that person
['Q133356', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q4249442 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Ukraine
The Ukraine is the country of citizenship of that person
Ukraine
action filter_type
action find
entity Pavlo Kutas
relation country of citizenship
type designation for an administrative territorial entity
['Ukrainian Soviet Socialist Republic', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Pavlo_Kutas property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1185 Q133356
P1376
Q515
USER
Which cities are the capital of Ukrainian Soviet Socialist Republic or Karnataka ?
OR((c(Q515),P1376,Q133356), (c(Q515),P1376,Q1185))
action filter_type
action union
action find_reverse
entity Q133356
relation P1376
action find_reverse
entity Q1185
relation P1376
type Q515
{'OR': [[{'concept': 'Q515'}, 'P1376', 'Q133356'], [{'concept': 'Q515'}, 'P1376', 'Q1185']]}
SELECT DISTINCT ?f WHERE { { { ?f property:P1376 resource:Q133356 } UNION { ?f property:P1376 resource:Q1185 } } . ?f rdf:type ontology:Q515 }
Karnataka Ukrainian Soviet Socialist Republic
action filter_type
action union
action find_reverse
entity Ukrainian Soviet Socialist Republic
relation capital of
action find_reverse
entity Karnataka
relation capital of
type city
{'OR': [[{'concept': 'city'}, 'capital of', 'Ukrainian Soviet Socialist Republic'], [{'concept': 'city'}, 'capital of', 'Karnataka']]}
SELECT DISTINCT ?f WHERE { { { ?f property:capital_of resource:Ukrainian_Soviet_Socialist_Republic } UNION { ?f property:capital_of resource:Karnataka } } . ?f rdf:type ontology:city }
[]
city
Q1899 Q1355
SYSTEM
Kyiv, Bangalore
Q1899 Q1355
OR((c(Q515),P1376,Q133356), (c(Q515),P1376,Q1185))
action filter_type
action union
action find_reverse
entity Q133356
relation P1376
action find_reverse
entity Q1185
relation P1376
type Q515
[ANSWERS] are the capital of Ukrainian Soviet Socialist Republic or Karnataka
{'OR': [[{'concept': 'Q515'}, 'P1376', 'Q133356'], [{'concept': 'Q515'}, 'P1376', 'Q1185']]}
SELECT DISTINCT ?f WHERE { { { ?f property:P1376 resource:Q133356 } UNION { ?f property:P1376 resource:Q1185 } } . ?f rdf:type ontology:Q515 }
Kyiv Bangalore
Kyiv and Bangalore are the capital of Ukrainian Soviet Socialist Republic or Karnataka
Kyiv Bangalore
action filter_type
action union
action find_reverse
entity Ukrainian Soviet Socialist Republic
relation capital of
action find_reverse
entity Karnataka
relation capital of
type city
{'OR': [[{'concept': 'city'}, 'capital of', 'Ukrainian Soviet Socialist Republic'], [{'concept': 'city'}, 'capital of', 'Karnataka']]}
SELECT DISTINCT ?f WHERE { { { ?f property:capital_of resource:Ukrainian_Soviet_Socialist_Republic } UNION { ?f property:capital_of resource:Karnataka } } . ?f rdf:type ontology:city }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P706
Q1048835 Q15324 Q15617994
USER
Which administrative territories have their location as around 1 political territories or bodies of water ?
(c(Q15617994),P706,c(Q1048835)|c(Q15324))
action approx
action union
action find_tuple_counts
relation P706
type Q15617994
type Q1048835
action find_tuple_counts
relation P706
type Q15617994
type Q15324
value 1
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q1048835'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?s WHERE { FILTER ( ?r = 1 ) . { SELECT DISTINCT ?s ( COUNT ( ?j ) AS ?r ) WHERE { { ?s property:P706 ?j . ?s rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 } UNION { ?s property:P706 ?j . ?s rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15324 } } GROUP BY ?s } }
action approx
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type body of water
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'political territorial entity'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?s WHERE { FILTER ( ?r = 1 ) . { SELECT DISTINCT ?s ( COUNT ( ?j ) AS ?r ) WHERE { { ?s property:located_on_terrain_feature ?j . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity } UNION { ?s property:located_on_terrain_feature ?j . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:body_of_water } } GROUP BY ?s } }
[]
political territorial entity body of water designation for an administrative territorial entity
Q55416 Q769680 Q489865
SYSTEM
Chioggia, Bornholm, Isola delle Femmine
Q2712111 Q24846 Q3172 Q25129 Q496389 Q128230 Q204529 Q3146 Q4770750 Q20836 Q20837 Q769680 Q192129 Q3038 Q25130 Q25135 Q3218 Q25125 Q29931 Q25082 Q23968 Q489865 Q518171 Q72432 Q20754 Q55416
(c(Q15617994),P706,c(Q1048835)|c(Q15324))
action approx
action union
action find_tuple_counts
relation P706
type Q15617994
type Q1048835
action find_tuple_counts
relation P706
type Q15617994
type Q15324
value 1
[ANSWERS] have their location as around 1 political territories or bodies of water
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q1048835'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?s WHERE { FILTER ( ?r = 1 ) . { SELECT DISTINCT ?s ( COUNT ( ?j ) AS ?r ) WHERE { { ?s property:P706 ?j . ?s rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 } UNION { ?s property:P706 ?j . ?s rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15324 } } GROUP BY ?s } }
Zagori Juist Fehmarn Langeoog Lipari Ventotene Zingst Pellworm Ansons Bay Hallig Hooge Fanø Bornholm Ustica Helgoland Spiekeroog Wangerooge Insel Hiddensee Baltrum Langeneß Borkum Norderney Isola delle Femmine Ellhofen Procida Gröde Chioggia
Chioggia, Bornholm and Isola delle Femmine have their location as around 1 political territories or bodies of water
Chioggia Bornholm Isola delle Femmine
action approx
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type body of water
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'political territorial entity'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?s WHERE { FILTER ( ?r = 1 ) . { SELECT DISTINCT ?s ( COUNT ( ?j ) AS ?r ) WHERE { { ?s property:located_on_terrain_feature ?j . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity } UNION { ?s property:located_on_terrain_feature ?j . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:body_of_water } } GROUP BY ?s } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q489865
P47
Q15617994
USER
Which administrative territory is bordered by that one ?
(c(Q15617994),P47,Q489865)
action filter_type
action find
entity Q489865
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q489865']
SELECT DISTINCT ?v WHERE { resource:Q489865 property:P47 ?v . ?v rdf:type ontology:Q15617994 }
Isola delle Femmine
action filter_type
action find
entity Isola delle Femmine
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Isola delle Femmine']
SELECT DISTINCT ?v WHERE { resource:Isola_delle_Femmine property:shares_border_with ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q489865
SYSTEM
Did you mean Isola delle Femmine ?
Q55416 Q769680 Q489865
(c(Q15617994),P47,Q55416) (c(Q15617994),P47,Q769680) (c(Q15617994),P47,Q489865)
[ANSWER]
[{'concept': 'Q15617994'}, 'P47', 'Q55416'] [{'concept': 'Q15617994'}, 'P47', 'Q769680'] [{'concept': 'Q15617994'}, 'P47', 'Q489865']
SELECT DISTINCT ?v WHERE { resource:Q489865 property:P47 ?v . ?v rdf:type ontology:Q15617994 }
Chioggia Bornholm Isola delle Femmine
Did you mean Isola delle Femmine ?
Isola delle Femmine
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Chioggia'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Bornholm'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Isola delle Femmine']
SELECT DISTINCT ?v WHERE { resource:Isola_delle_Femmine property:shares_border_with ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q15617994),P47,Q489865)
[{'concept': 'Q15617994'}, 'P47', 'Q489865']
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Isola delle Femmine']
[]
Q496878
SYSTEM
Capaci
Q496878
(c(Q15617994),P47,Q489865)
action filter_type
action find
entity Q489865
relation P47
type Q15617994
[ANSWER] is bordered by that one
[{'concept': 'Q15617994'}, 'P47', 'Q489865']
SELECT DISTINCT ?v WHERE { resource:Q489865 property:P47 ?v . ?v rdf:type ontology:Q15617994 }
Capaci
Capaci is bordered by that one
Capaci
action filter_type
action find
entity Isola delle Femmine
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Isola delle Femmine']
SELECT DISTINCT ?v WHERE { resource:Isola_delle_Femmine property:shares_border_with ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18337859 Q769680
P17
Q1048835
USER
Which political territories are Bornholm or Hossingen present in ?
OR((Q769680,P17,c(Q1048835)), (Q18337859,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q769680
relation P17
action find
entity Q18337859
relation P17
type Q1048835
{'OR': [['Q769680', 'P17', {'concept': 'Q1048835'}], ['Q18337859', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q769680 property:P17 ?g } UNION { resource:Q18337859 property:P17 ?g } } . ?g rdf:type ontology:Q1048835 }
Hossingen Bornholm
action filter_type
action union
action find
entity Bornholm
relation country
action find
entity Hossingen
relation country
type political territorial entity
{'OR': [['Bornholm', 'country', {'concept': 'political territorial entity'}], ['Hossingen', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Bornholm property:country ?g } UNION { resource:Hossingen property:country ?g } } . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q35
SYSTEM
Germany, Denmark
Q183 Q35
OR((Q769680,P17,c(Q1048835)), (Q18337859,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q769680
relation P17
action find
entity Q18337859
relation P17
type Q1048835
[ANSWERS]
{'OR': [['Q769680', 'P17', {'concept': 'Q1048835'}], ['Q18337859', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q769680 property:P17 ?g } UNION { resource:Q18337859 property:P17 ?g } } . ?g rdf:type ontology:Q1048835 }
Germany Denmark
Which political territories are Bornholm or Hossingen present in
Germany Denmark
action filter_type
action union
action find
entity Bornholm
relation country
action find
entity Hossingen
relation country
type political territorial entity
{'OR': [['Bornholm', 'country', {'concept': 'political territorial entity'}], ['Hossingen', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Bornholm property:country ?g } UNION { resource:Hossingen property:country ?g } } . ?g rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q123611
P27
Q502895
USER
Are Siegfried Matlok a citizen of those political territories ?
(Q123611,P27,Q183) (Q123611,P27,Q35)
action is_in
entity prev_answer
action find
entity Q123611
relation P27
['Q123611', 'P27', 'Q183'] ['Q123611', 'P27', 'Q35']
ASK WHERE { resource:Q123611 property:P27 ?q . VALUES ( ?q ) { ( resource:Q183 ) ( resource:Q35 ) } }
Siegfried Matlok
action is_in
entity prev_answer
action find
entity Siegfried Matlok
relation country of citizenship
['Siegfried Matlok', 'country of citizenship', 'Germany'] ['Siegfried Matlok', 'country of citizenship', 'Denmark']
ASK WHERE { resource:Siegfried_Matlok property:country_of_citizenship ?q . VALUES ( ?q ) { ( resource:Germany ) ( resource:Denmark ) } }
[]
common name
SYSTEM
YES
(Q123611,P27,Q183) (Q123611,P27,Q35)
action is_in
entity prev_answer
action find
entity Q123611
relation P27
[ANSWER]
['Q123611', 'P27', 'Q183'] ['Q123611', 'P27', 'Q35']
ASK WHERE { resource:Q123611 property:P27 ?q . VALUES ( ?q ) { ( resource:Q183 ) ( resource:Q35 ) } }
Yes
action is_in
entity prev_answer
action find
entity Siegfried Matlok
relation country of citizenship
['Siegfried Matlok', 'country of citizenship', 'Germany'] ['Siegfried Matlok', 'country of citizenship', 'Denmark']
ASK WHERE { resource:Siegfried_Matlok property:country_of_citizenship ?q . VALUES ( ?q ) { ( resource:Germany ) ( resource:Denmark ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q35 Q1636954
P47
Q1048835
USER
Is Leza de Río Leza bordered by Denmark ?
(Q35,P47,Q1636954)
action is_in
entity Q1636954
action find
entity Q35
relation P47
['Q35', 'P47', 'Q1636954']
ASK WHERE { resource:Q35 property:P47 resource:Q1636954 }
Denmark Leza de Río Leza
action is_in
entity Leza de Río Leza
action find
entity Denmark
relation shares border with
['Denmark', 'shares border with', 'Leza de Río Leza']
ASK WHERE { resource:Denmark property:shares_border_with resource:Leza_de_Río_Leza }
[]
political territorial entity
SYSTEM
NO
(Q35,P47,Q1636954)
action is_in
entity Q1636954
action find
entity Q35
relation P47
[ANSWER]
['Q35', 'P47', 'Q1636954']
ASK WHERE { resource:Q35 property:P47 resource:Q1636954 }
No
action is_in
entity Leza de Río Leza
action find
entity Denmark
relation shares border with
['Denmark', 'shares border with', 'Leza de Río Leza']
ASK WHERE { resource:Denmark property:shares_border_with resource:Leza_de_Río_Leza }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P17
Q15617994 Q62447 Q838948
USER
How many administrative territories are approximately 678 aerodromes and works of art a part of ?
(c(Q62447)|c(Q838948),P17,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q62447
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q838948
value 678
[[{'concept': 'Q62447'}, {'concept': 'Q838948'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) ?o WHERE { { ?o rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q838948 . ?c property:P17 ?o } UNION { ?c property:P17 ?o . ?o rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q62447 } } GROUP BY ?o } . FILTER ( ?b = 678 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type aerodrome
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type work of art
value 678
[[{'concept': 'aerodrome'}, {'concept': 'work of art'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) ?o WHERE { { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:work_of_art . ?c property:country ?o } UNION { ?c property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:aerodrome } } GROUP BY ?o } . FILTER ( ?b = 678 ) }
[]
designation for an administrative territorial entity aerodrome work of art
SYSTEM
7
Q55 Q145 Q148 Q159 Q155 Q298 Q29
(c(Q62447)|c(Q838948),P17,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q62447
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q838948
value 678
[ANSWER]
[[{'concept': 'Q62447'}, {'concept': 'Q838948'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) ?o WHERE { { ?o rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q838948 . ?c property:P17 ?o } UNION { ?c property:P17 ?o . ?o rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q62447 } } GROUP BY ?o } . FILTER ( ?b = 678 ) }
Netherlands United Kingdom People's Republic of China Russia Brazil Chile Spain
7
action count
action approx
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type aerodrome
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type work of art
value 678
[[{'concept': 'aerodrome'}, {'concept': 'work of art'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) ?o WHERE { { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:work_of_art . ?c property:country ?o } UNION { ?c property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:aerodrome } } GROUP BY ?o } . FILTER ( ?b = 678 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q496878
P20
Q502895
USER
How many people expired at Capaci ?
(c(Q502895),P20,Q496878)
action count
action filter_type
action find_reverse
entity Q496878
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q496878']
SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { ?z property:P20 resource:Q496878 . ?z rdf:type ontology:Q502895 }
Capaci
action count
action filter_type
action find_reverse
entity Capaci
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Capaci']
SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { ?z property:place_of_death resource:Capaci . ?z rdf:type ontology:common_name }
[]
common name
SYSTEM
6
Q4015138 Q1082053 Q3939573 Q207073 Q3723980 Q3619919
(c(Q502895),P20,Q496878)
action count
action filter_type
action find_reverse
entity Q496878
relation P20
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P20', 'Q496878']
SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { ?z property:P20 resource:Q496878 . ?z rdf:type ontology:Q502895 }
Vito Schifani Francesca Morvillo Rocco Dicillo Giovanni Falcone Emanuele Piazza Antonio Montinaro
6
action count
action filter_type
action find_reverse
entity Capaci
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Capaci']
SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { ?z property:place_of_death resource:Capaci . ?z rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q499565
P276
Q55488
USER
Which railway station is located at Tower Hill ?
(c(Q55488),P276,Q499565)
action filter_type
action find_reverse
entity Q499565
relation P276
type Q55488
[{'concept': 'Q55488'}, 'P276', 'Q499565']
SELECT DISTINCT ?i WHERE { ?i property:P276 resource:Q499565 . ?i rdf:type ontology:Q55488 }
Tower Hill
action filter_type
action find_reverse
entity Tower Hill
relation location
type railway station
[{'concept': 'railway station'}, 'location', 'Tower Hill']
SELECT DISTINCT ?i WHERE { ?i property:location resource:Tower_Hill . ?i rdf:type ontology:railway_station }
[]
railway station
Q1702680
SYSTEM
Tower Gateway
Q1702680
(c(Q55488),P276,Q499565)
action filter_type
action find_reverse
entity Q499565
relation P276
type Q55488
At [ANSWER] is located at Tower Hill
[{'concept': 'Q55488'}, 'P276', 'Q499565']
SELECT DISTINCT ?i WHERE { ?i property:P276 resource:Q499565 . ?i rdf:type ontology:Q55488 }
Tower Gateway
At Tower Gateway is located at Tower Hill
Tower Gateway
action filter_type
action find_reverse
entity Tower Hill
relation location
type railway station
[{'concept': 'railway station'}, 'location', 'Tower Hill']
SELECT DISTINCT ?i WHERE { ?i property:location resource:Tower_Hill . ?i rdf:type ontology:railway_station }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1702680
P197
Q55488
USER
Which railway station is adjoined to that one ?
(c(Q55488),P197,Q1702680)
action filter_type
action find_reverse
entity Q1702680
relation P197
type Q55488
[{'concept': 'Q55488'}, 'P197', 'Q1702680']
SELECT DISTINCT ?b WHERE { ?b property:P197 resource:Q1702680 . ?b rdf:type ontology:Q55488 }
Tower Gateway
action filter_type
action find_reverse
entity Tower Gateway
relation adjacent station
type railway station
[{'concept': 'railway station'}, 'adjacent station', 'Tower Gateway']
SELECT DISTINCT ?b WHERE { ?b property:adjacent_station resource:Tower_Gateway . ?b rdf:type ontology:railway_station }
[]
railway station
Q801431
SYSTEM
Shadwell
Q801431
(c(Q55488),P197,Q1702680)
action filter_type
action find_reverse
entity Q1702680
relation P197
type Q55488
[ANSWER] is adjoined to that one
[{'concept': 'Q55488'}, 'P197', 'Q1702680']
SELECT DISTINCT ?b WHERE { ?b property:P197 resource:Q1702680 . ?b rdf:type ontology:Q55488 }
Shadwell
Shadwell is adjoined to that one
Shadwell
action filter_type
action find_reverse
entity Tower Gateway
relation adjacent station
type railway station
[{'concept': 'railway station'}, 'adjacent station', 'Tower Gateway']
SELECT DISTINCT ?b WHERE { ?b property:adjacent_station resource:Tower_Gateway . ?b rdf:type ontology:railway_station }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q2921981
P669
Q79007 Q55488
USER
How many streets are lesser number of railway stations located on than boulevard de Clichy ?
(c(Q55488),P669,c(Q79007))
action count
action less
action find_reverse_tuple_counts
relation P669
type Q79007
type Q55488
action count
action filter_type
action find_reverse
entity Q2921981
relation P669
type Q55488
[{'concept': 'Q55488'}, 'P669', {'concept': 'Q79007'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?o ) AS ?m ) WHERE { ?o property:P669 ?q . ?q rdf:type ontology:Q79007 . ?o rdf:type ontology:Q55488 } GROUP BY ?q } . FILTER ( ?m < ?b ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { ?w rdf:type ontology:Q55488 . ?w property:P669 resource:Q2921981 } } }
boulevard de Clichy
action count
action less
action find_reverse_tuple_counts
relation located on street
type street
type railway station
action count
action filter_type
action find_reverse
entity boulevard de Clichy
relation located on street
type railway station
[{'concept': 'railway station'}, 'located on street', {'concept': 'street'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?o ) AS ?m ) WHERE { ?o property:located_on_street ?q . ?q rdf:type ontology:street . ?o rdf:type ontology:railway_station } GROUP BY ?q } . FILTER ( ?m < ?b ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { ?w rdf:type ontology:railway_station . ?w property:located_on_street resource:boulevard_de_Clichy } } }
[]
street railway station
SYSTEM
150
Q14629242 Q550 Q2921899 Q2873884 Q2921894 Q2921891 Q2136395 Q2873605 Q3452619 Q2921959 Q2873805 Q2922034 Q2921810 Q2922032 Q2922031 Q3149343 Q2921792 Q2873769 Q2873707 Q2874166 Q2395011 Q2874160 Q2921888 Q2921883 Q2873923 Q2922002 Q2921960 Q2873772 Q2391303 Q2921805 Q790568 Q2921920 Q2874202 Q2921923 Q2921925 Q2921926 Q4099024 Q2404571 Q790581 Q4267094 Q1907324 Q3058454 Q109873 Q2873820 Q2873824 Q41068 Q5348068 Q2922016 Q2921837 Q3007468 Q790578 Q2874056 Q790573 Q2874210 Q2632681 Q2873901 Q2873906 Q2581778 Q3058441 Q2874102 Q2460215 Q2873580 Q2873982 Q2921988 Q2921989 Q2873657 Q2874189 Q2874022 Q2922060 Q2921907 Q2922067 Q895082 Q34441 Q382500 Q590441 Q2873598 Q2873917 Q2873916 Q2079615 Q2921993 Q895076 Q2873649 Q2584356 Q109858 Q2874131 Q2922038 Q2873992 Q2922078 Q2874032 Q2921917 Q2921850 Q934651 Q735620 Q1851236 Q2873654 Q2873874 Q2873735 Q4381087 Q2873964 Q2873967 Q2873636 Q2873739 Q2921965 Q2921966 Q3407377 Q2873508 Q2921844 Q6546819 Q2874182 Q1027566 Q2921775 Q10526423 Q2921772 Q16331713 Q2874151 Q2874152 Q2873862 Q2504703 Q2873974 Q2874015 Q34472 Q2874010 Q2921974 Q2921972 Q2921971 Q2921970 Q2921874 Q2921875 Q2921979 Q3094222 Q2873793 Q3449383 Q790562 Q2921939 Q2873818 Q2873944 Q895077 Q10679907 Q2921942 Q895078 Q2873546 Q2922026 Q3149212 Q7696225 Q2921864 Q533037 Q2921783 Q1007186 Q2384518 Q17518281
(c(Q55488),P669,c(Q79007))
action count
action less
action find_reverse_tuple_counts
relation P669
type Q79007
type Q55488
action count
action filter_type
action find_reverse
entity Q2921981
relation P669
type Q55488
[ANSWER]
[{'concept': 'Q55488'}, 'P669', {'concept': 'Q79007'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?o ) AS ?m ) WHERE { ?o property:P669 ?q . ?q rdf:type ontology:Q79007 . ?o rdf:type ontology:Q55488 } GROUP BY ?q } . FILTER ( ?m < ?b ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { ?w rdf:type ontology:Q55488 . ?w property:P669 resource:Q2921981 } } }
esplanade Habib-Bourguiba avenue des Champs-Élysées boulevard Poissonnière avenue Winston-Churchill boulevard Pereire boulevard Pasteur H. C. Andersens Boulevard avenue Denfert-Rochereau rue du Trésor boulevard Vincent-Auriol avenue Philippe-Auguste boulevard de la Madeleine boulevard Edgar-Quinet boulevard de la Villette boulevard de la Somme impasse de la Poissonnerie boulevard Brune avenue Matignon avenue Jean-Jaurès avenue du Maine avenue David-Weill avenue du Général-Sarrail boulevard Morland boulevard Masséna avenue de Marigny boulevard de Strasbourg La Défense ring road avenue Maurice-d'Ocagne avenue de la Porte-Molitor boulevard Diderot avenue Henri-Martin boulevard Saint-Jacques avenue Élisée-Reclus boulevard Richard-Lenoir boulevard Saint-Marcel boulevard Saint-Martin Boulevard Alexandre-Taché boulevard Saint-Denis avenue Victor-Hugo Laurier Avenue Massachusetts Avenue esplanade du 9-novembre-1989 Sixth Avenue avenue Raymond-Poincaré avenue René-Coty Paulista Avenue Eglinton Avenue boulevard de l'Hôpital boulevard Henri-IV Liteyny Avenue avenue Kléber avenue de la République avenue Mozart avenue Émile-Zola Moskovsky Prospekt avenue de Camoëns avenue de Flandre boulevard des Invalides esplanade Pierre-Vidal-Naquet avenue des Gobelins Saint Laurent Boulevard avenue Claude-Vellefaux avenue de l'Observatoire boulevard de Montmorency boulevard de Ménilmontant avenue George V avenue du Président-Wilson avenue de la Porte-de-Charenton Boulevard du Crime boulevard Poniatowski boulevard du Palais boulevard des Italiens Bundesstraße 2 Nevsky Prospect boulevard des Capucines avenue Daumesnil avenue de France avenue de Friedland Paseo del Prado boulevard de Port-Royal boulevard Haussmann avenue Gabriel Vasilissis Sofias Avenue Fifth Avenue avenue du Colonel-Henri-Rol-Tanguy boulevard des Batignolles avenue de la Belle-Gabrielle boulevard du Montparnasse avenue de la Porte-de-Montrouge boulevard Raspail boulevard Jourdan Bulevar kralja Aleksandra avenue Montaigne boulevard du Temple avenue Gambetta avenue Victoria avenue Junot Vernadskogo Avenue avenue de Versailles avenue de Villiers avenue Franklin-D.-Roosevelt avenue Ledru-Rollin boulevard d'Auteuil boulevard Voltaire promenade du Peyrou avenue Albert-de-Mun boulevard Jules-Ferry Ligovsky Avenue Park Avenue boulevard Montmartre boulevard Auguste-Blanqui Hornstulls strand boulevard Arago Leoforos Megalou Alexandrou avenue du Général-Leclerc avenue du Général-Lemonnier avenue Trudaine boulevard de Rochechouart avenue de Wagram avenue de la Porte-d'Auteuil Bundesstraße 13 avenue de l'Opéra boulevard de Courcelles boulevard de Bonne-Nouvelle boulevard de Bercy boulevard de Belleville boulevard Malesherbes boulevard Macdonald boulevard de Grenelle Grote Houtstraat avenue Parmentier Patission Street avenue Foch boulevard Soult avenue Rachel avenue de Saint-Mandé boulevard de Magenta Stigbergsgatan boulevard Sérurier boulevard Saint-Michel avenue Bugeaud boulevard de la Chapelle impasse Chartière Telegraph Avenue boulevard Lannes boulevard Saint-Germain boulevard Bessières Bundesstraße 466 Independence Avenue cours Saint-Pierre
150
action count
action less
action find_reverse_tuple_counts
relation located on street
type street
type railway station
action count
action filter_type
action find_reverse
entity boulevard de Clichy
relation located on street
type railway station
[{'concept': 'railway station'}, 'located on street', {'concept': 'street'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?o ) AS ?m ) WHERE { ?o property:located_on_street ?q . ?q rdf:type ontology:street . ?o rdf:type ontology:railway_station } GROUP BY ?q } . FILTER ( ?m < ?b ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { ?w rdf:type ontology:railway_station . ?w property:located_on_street resource:boulevard_de_Clichy } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q2922038
P669
Q79007 Q55488
USER
And what about boulevard des Batignolles?
(c(Q55488),P669,c(Q79007))
action count
action less
action find_reverse_tuple_counts
relation P669
type Q79007
type Q55488
action count
action filter_type
action find_reverse
entity Q2922038
relation P669
type Q55488
[{'concept': 'Q55488'}, 'P669', {'concept': 'Q79007'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?t ) AS ?o ) WHERE { ?t rdf:type ontology:Q55488 . ?v rdf:type ontology:Q79007 . ?t property:P669 ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) WHERE { ?q rdf:type ontology:Q55488 . ?q property:P669 resource:Q2922038 } } . FILTER ( ?o < ?j ) }
boulevard des Batignolles
action count
action less
action find_reverse_tuple_counts
relation located on street
type street
type railway station
action count
action filter_type
action find_reverse
entity boulevard des Batignolles
relation located on street
type railway station
[{'concept': 'railway station'}, 'located on street', {'concept': 'street'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?t ) AS ?o ) WHERE { ?t rdf:type ontology:railway_station . ?v rdf:type ontology:street . ?t property:located_on_street ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) WHERE { ?q rdf:type ontology:railway_station . ?q property:located_on_street resource:boulevard_des_Batignolles } } . FILTER ( ?o < ?j ) }
[]
street railway station
SYSTEM
124
Q14629242 Q550 Q2921899 Q2873884 Q2921894 Q2136395 Q2873605 Q3452619 Q2921959 Q2873805 Q2922034 Q2922031 Q3149343 Q2921792 Q2873769 Q2873707 Q2874166 Q2395011 Q2874160 Q2921888 Q2921883 Q2873923 Q2921960 Q2873772 Q2391303 Q790568 Q2921920 Q2874202 Q2921925 Q2921926 Q4099024 Q2404571 Q4267094 Q1907324 Q3058454 Q109873 Q2873820 Q2873824 Q41068 Q5348068 Q2921837 Q3007468 Q790573 Q2874210 Q2632681 Q2873901 Q2873906 Q2581778 Q3058441 Q2874102 Q2460215 Q2873580 Q2873982 Q2873657 Q2874189 Q2874022 Q2922060 Q2921907 Q2922067 Q895082 Q34441 Q382500 Q590441 Q2873598 Q2873917 Q2873916 Q2079615 Q2921993 Q895076 Q2873649 Q2584356 Q2874131 Q2873992 Q2922078 Q2874032 Q2921850 Q934651 Q735620 Q1851236 Q2873654 Q2873874 Q2873735 Q4381087 Q2873964 Q2873636 Q2873739 Q2921965 Q2921966 Q3407377 Q2873508 Q2921844 Q6546819 Q2874182 Q1027566 Q2921775 Q10526423 Q2921772 Q16331713 Q2874152 Q2873862 Q2873974 Q2874015 Q34472 Q2874010 Q2921972 Q2921971 Q2921874 Q2921875 Q2921979 Q3094222 Q3449383 Q2921939 Q2873818 Q895077 Q10679907 Q2922026 Q3149212 Q7696225 Q2921864 Q533037 Q2921783 Q1007186 Q2384518 Q17518281
(c(Q55488),P669,c(Q79007))
action count
action less
action find_reverse_tuple_counts
relation P669
type Q79007
type Q55488
action count
action filter_type
action find_reverse
entity Q2922038
relation P669
type Q55488
[ANSWER]
[{'concept': 'Q55488'}, 'P669', {'concept': 'Q79007'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?t ) AS ?o ) WHERE { ?t rdf:type ontology:Q55488 . ?v rdf:type ontology:Q79007 . ?t property:P669 ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) WHERE { ?q rdf:type ontology:Q55488 . ?q property:P669 resource:Q2922038 } } . FILTER ( ?o < ?j ) }
esplanade Habib-Bourguiba avenue des Champs-Élysées boulevard Poissonnière avenue Winston-Churchill boulevard Pereire H. C. Andersens Boulevard avenue Denfert-Rochereau rue du Trésor boulevard Vincent-Auriol avenue Philippe-Auguste boulevard de la Madeleine boulevard de la Somme impasse de la Poissonnerie boulevard Brune avenue Matignon avenue Jean-Jaurès avenue du Maine avenue David-Weill avenue du Général-Sarrail boulevard Morland boulevard Masséna avenue de Marigny La Défense ring road avenue Maurice-d'Ocagne avenue de la Porte-Molitor avenue Henri-Martin boulevard Saint-Jacques avenue Élisée-Reclus boulevard Saint-Marcel boulevard Saint-Martin Boulevard Alexandre-Taché boulevard Saint-Denis Laurier Avenue Massachusetts Avenue esplanade du 9-novembre-1989 Sixth Avenue avenue Raymond-Poincaré avenue René-Coty Paulista Avenue Eglinton Avenue boulevard Henri-IV Liteyny Avenue avenue Mozart avenue Émile-Zola Moskovsky Prospekt avenue de Camoëns avenue de Flandre boulevard des Invalides esplanade Pierre-Vidal-Naquet avenue des Gobelins Saint Laurent Boulevard avenue Claude-Vellefaux avenue de l'Observatoire avenue George V avenue du Président-Wilson avenue de la Porte-de-Charenton Boulevard du Crime boulevard Poniatowski boulevard du Palais boulevard des Italiens Bundesstraße 2 Nevsky Prospect boulevard des Capucines avenue Daumesnil avenue de France avenue de Friedland Paseo del Prado boulevard de Port-Royal boulevard Haussmann avenue Gabriel Vasilissis Sofias Avenue avenue du Colonel-Henri-Rol-Tanguy avenue de la Belle-Gabrielle boulevard du Montparnasse avenue de la Porte-de-Montrouge boulevard Jourdan Bulevar kralja Aleksandra avenue Montaigne boulevard du Temple avenue Gambetta avenue Victoria avenue Junot Vernadskogo Avenue avenue de Versailles avenue Franklin-D.-Roosevelt avenue Ledru-Rollin boulevard d'Auteuil boulevard Voltaire promenade du Peyrou avenue Albert-de-Mun boulevard Jules-Ferry Ligovsky Avenue Park Avenue boulevard Montmartre boulevard Auguste-Blanqui Hornstulls strand boulevard Arago Leoforos Megalou Alexandrou avenue du Général-Lemonnier avenue Trudaine avenue de Wagram avenue de la Porte-d'Auteuil Bundesstraße 13 avenue de l'Opéra boulevard de Bonne-Nouvelle boulevard de Bercy boulevard Malesherbes boulevard Macdonald boulevard de Grenelle Grote Houtstraat Patission Street boulevard Soult avenue Rachel boulevard de Magenta Stigbergsgatan boulevard de la Chapelle impasse Chartière Telegraph Avenue boulevard Lannes boulevard Saint-Germain boulevard Bessières Bundesstraße 466 Independence Avenue cours Saint-Pierre
124
action count
action less
action find_reverse_tuple_counts
relation located on street
type street
type railway station
action count
action filter_type
action find_reverse
entity boulevard des Batignolles
relation located on street
type railway station
[{'concept': 'railway station'}, 'located on street', {'concept': 'street'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?t ) AS ?o ) WHERE { ?t rdf:type ontology:railway_station . ?v rdf:type ontology:street . ?t property:located_on_street ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) WHERE { ?q rdf:type ontology:railway_station . ?q property:located_on_street resource:boulevard_des_Batignolles } } . FILTER ( ?o < ?j ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1376
Q1048835 Q515 Q515
USER
Which cities are the capital of max number of political territories or cities ?
(c(Q515),P1376,c(Q1048835)|c(Q515))
action argmax
action union
action find_tuple_counts
relation P1376
type Q515
type Q1048835
action find_tuple_counts
relation P1376
type Q515
type Q515
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q1048835'}, {'concept': 'Q515'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) ?w WHERE { { ?w rdf:type ontology:Q515 . ?o rdf:type ontology:Q1048835 . ?w property:P1376 ?o } UNION { ?w property:P1376 ?o . ?w rdf:type ontology:Q515 . ?o rdf:type ontology:Q515 } } GROUP BY ?w } } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) ?e WHERE { { ?e rdf:type ontology:Q515 . ?k rdf:type ontology:Q515 . ?e property:P1376 ?k } UNION { ?e rdf:type ontology:Q515 . ?k rdf:type ontology:Q1048835 . ?e property:P1376 ?k } } GROUP BY ?e } . FILTER ( ?i = ?x ) }
action argmax
action union
action find_tuple_counts
relation capital of
type city
type political territorial entity
action find_tuple_counts
relation capital of
type city
type city
[{'concept': 'city'}, 'capital of', [{'concept': 'political territorial entity'}, {'concept': 'city'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) ?w WHERE { { ?w rdf:type ontology:city . ?o rdf:type ontology:political_territorial_entity . ?w property:capital_of ?o } UNION { ?w property:capital_of ?o . ?w rdf:type ontology:city . ?o rdf:type ontology:city } } GROUP BY ?w } } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) ?e WHERE { { ?e rdf:type ontology:city . ?k rdf:type ontology:city . ?e property:capital_of ?k } UNION { ?e rdf:type ontology:city . ?k rdf:type ontology:political_territorial_entity . ?e property:capital_of ?k } } GROUP BY ?e } . FILTER ( ?i = ?x ) }
[]
political territorial entity city city
Q2865
SYSTEM
Kassel
Q2865
(c(Q515),P1376,c(Q1048835)|c(Q515))
action argmax
action union
action find_tuple_counts
relation P1376
type Q515
type Q1048835
action find_tuple_counts
relation P1376
type Q515
type Q515
[ANSWER] is the capital of max number of political territories or cities
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q1048835'}, {'concept': 'Q515'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) ?w WHERE { { ?w rdf:type ontology:Q515 . ?o rdf:type ontology:Q1048835 . ?w property:P1376 ?o } UNION { ?w property:P1376 ?o . ?w rdf:type ontology:Q515 . ?o rdf:type ontology:Q515 } } GROUP BY ?w } } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) ?e WHERE { { ?e rdf:type ontology:Q515 . ?k rdf:type ontology:Q515 . ?e property:P1376 ?k } UNION { ?e rdf:type ontology:Q515 . ?k rdf:type ontology:Q1048835 . ?e property:P1376 ?k } } GROUP BY ?e } . FILTER ( ?i = ?x ) }
Kassel
Kassel is the capital of max number of political territories or cities
Kassel
action argmax
action union
action find_tuple_counts
relation capital of
type city
type political territorial entity
action find_tuple_counts
relation capital of
type city
type city
[{'concept': 'city'}, 'capital of', [{'concept': 'political territorial entity'}, {'concept': 'city'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) ?w WHERE { { ?w rdf:type ontology:city . ?o rdf:type ontology:political_territorial_entity . ?w property:capital_of ?o } UNION { ?w property:capital_of ?o . ?w rdf:type ontology:city . ?o rdf:type ontology:city } } GROUP BY ?w } } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) ?e WHERE { { ?e rdf:type ontology:city . ?k rdf:type ontology:city . ?e property:capital_of ?k } UNION { ?e rdf:type ontology:city . ?k rdf:type ontology:political_territorial_entity . ?e property:capital_of ?k } } GROUP BY ?e } . FILTER ( ?i = ?x ) }
[]