Simple Question (Direct)
Simple Question
Q1635096
P937
Q515
USER
What is the work location of Hugo Güldner ?
(Q1635096,P937,c(Q515))
action filter_type
action find
entity Q1635096
relation P937
type Q515
['Q1635096', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?o WHERE { resource:Q1635096 property:P937 ?o . ?o rdf:type ontology:Q515 }
Hugo Güldner
action filter_type
action find
entity Hugo Güldner
relation work location
type city
['Hugo Güldner', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?o WHERE { resource:Hugo_Güldner property:work_location ?o . ?o rdf:type ontology:city }
[]
city
Q2749
SYSTEM
Augsburg
Q2749
(Q1635096,P937,c(Q515))
action filter_type
action find
entity Q1635096
relation P937
type Q515
The work location of Hugo Güldner is in [ANSWER]
['Q1635096', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?o WHERE { resource:Q1635096 property:P937 ?o . ?o rdf:type ontology:Q515 }
Augsburg
The work location of Hugo Güldner is in Augsburg
Augsburg
action filter_type
action find
entity Hugo Güldner
relation work location
type city
['Hugo Güldner', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?o WHERE { resource:Hugo_Güldner property:work_location ?o . ?o rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2749
P276
Q2668072
USER
Which collection is situated at that city ?
(c(Q2668072),P276,Q2749)
action filter_type
action find_reverse
entity Q2749
relation P276
type Q2668072
[{'concept': 'Q2668072'}, 'P276', 'Q2749']
SELECT DISTINCT ?t WHERE { ?t property:P276 resource:Q2749 . ?t rdf:type ontology:Q2668072 }
Augsburg
action filter_type
action find_reverse
entity Augsburg
relation location
type collection
[{'concept': 'collection'}, 'location', 'Augsburg']
SELECT DISTINCT ?t WHERE { ?t property:location resource:Augsburg . ?t rdf:type ontology:collection }
[]
collection
Q2324620
SYSTEM
Augsburg textile and industry museum
Q2324620
(c(Q2668072),P276,Q2749)
action filter_type
action find_reverse
entity Q2749
relation P276
type Q2668072
[ANSWER] is situated at that city
[{'concept': 'Q2668072'}, 'P276', 'Q2749']
SELECT DISTINCT ?t WHERE { ?t property:P276 resource:Q2749 . ?t rdf:type ontology:Q2668072 }
Augsburg textile and industry museum
Augsburg textile and industry museum is situated at that city
Augsburg textile and industry museum
action filter_type
action find_reverse
entity Augsburg
relation location
type collection
[{'concept': 'collection'}, 'location', 'Augsburg']
SELECT DISTINCT ?t WHERE { ?t property:location resource:Augsburg . ?t rdf:type ontology:collection }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2324620
P17
Q1048835
USER
Which political territory is that collection present in ?
(Q2324620,P17,c(Q1048835))
action filter_type
action find
entity Q2324620
relation P17
type Q1048835
['Q2324620', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { resource:Q2324620 property:P17 ?v . ?v rdf:type ontology:Q1048835 }
Augsburg textile and industry museum
action filter_type
action find
entity Augsburg textile and industry museum
relation country
type political territorial entity
['Augsburg textile and industry museum', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Augsburg_textile_and_industry_museum property:country ?v . ?v rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q2324620,P17,c(Q1048835))
action filter_type
action find
entity Q2324620
relation P17
type Q1048835
That collection is in [ANSWER]
['Q2324620', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { resource:Q2324620 property:P17 ?v . ?v rdf:type ontology:Q1048835 }
Germany
That collection is in Germany
Germany
action filter_type
action find
entity Augsburg textile and industry museum
relation country
type political territorial entity
['Augsburg textile and industry museum', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Augsburg_textile_and_industry_museum property:country ?v . ?v rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q183 Q168333 Q45
P530
Q15617994
USER
Does that political territory have tactful political relations with Giesensdorf and Portugal ?
(Q183,P530,Q168333) (Q183,P530,Q45)
action is_in
entity Q183
action intersection
action find_reverse
entity Q168333
relation P530
action find_reverse
entity Q45
relation P530
['Q183', 'P530', 'Q168333'] ['Q183', 'P530', 'Q45']
ASK WHERE { resource:Q183 property:P530 resource:Q45 . resource:Q183 property:P530 resource:Q168333 }
Germany Giesensdorf Portugal
action is_in
entity Germany
action intersection
action find_reverse
entity Giesensdorf
relation diplomatic relation
action find_reverse
entity Portugal
relation diplomatic relation
['Germany', 'diplomatic relation', 'Giesensdorf'] ['Germany', 'diplomatic relation', 'Portugal']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Portugal . resource:Germany property:diplomatic_relation resource:Giesensdorf }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q183,P530,Q168333) (Q183,P530,Q45)
action is_in
entity Q183
action intersection
action find_reverse
entity Q168333
relation P530
action find_reverse
entity Q45
relation P530
[ANSWER]
['Q183', 'P530', 'Q168333'] ['Q183', 'P530', 'Q45']
ASK WHERE { resource:Q183 property:P530 resource:Q45 . resource:Q183 property:P530 resource:Q168333 }
NO and YES respectively
action is_in
entity Germany
action intersection
action find_reverse
entity Giesensdorf
relation diplomatic relation
action find_reverse
entity Portugal
relation diplomatic relation
['Germany', 'diplomatic relation', 'Giesensdorf'] ['Germany', 'diplomatic relation', 'Portugal']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Portugal . resource:Germany property:diplomatic_relation resource:Giesensdorf }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q566661
P608
Q2668072 Q3084961 Q838948
USER
How many collections were approximately the same number of product linings and works of art exhibited at as Museum der bildenden Künste ?
(c(Q3084961)|c(Q838948),P608,c(Q2668072))
action count
action approx
action union
action find_reverse_tuple_counts
relation P608
type Q2668072
type Q3084961
action find_reverse_tuple_counts
relation P608
type Q2668072
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q566661
relation P608
type Q3084961
type Q838948
[[{'concept': 'Q3084961'}, {'concept': 'Q838948'}], 'P608', {'concept': 'Q2668072'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { ?o property:P608 resource:Q566661 . { { ?o rdf:type ontology:Q3084961 } UNION { ?o rdf:type ontology:Q838948 } } } } . FILTER ( ?q = ?c ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) ?k WHERE { { ?x property:P608 ?k . ?k rdf:type ontology:Q2668072 . ?x rdf:type ontology:Q3084961 } UNION { ?k rdf:type ontology:Q2668072 . ?x rdf:type ontology:Q838948 . ?x property:P608 ?k } } GROUP BY ?k } }
Museum der bildenden Künste
action count
action approx
action union
action find_reverse_tuple_counts
relation exhibition history
type collection
type product lining
action find_reverse_tuple_counts
relation exhibition history
type collection
type work of art
action count
action filter_multi_types
action find_reverse
entity Museum der bildenden Künste
relation exhibition history
type product lining
type work of art
[[{'concept': 'product lining'}, {'concept': 'work of art'}], 'exhibition history', {'concept': 'collection'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { ?o property:exhibition_history resource:Museum_der_bildenden_Künste . { { ?o rdf:type ontology:product_lining } UNION { ?o rdf:type ontology:work_of_art } } } } . FILTER ( ?q = ?c ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) ?k WHERE { { ?x property:exhibition_history ?k . ?k rdf:type ontology:collection . ?x rdf:type ontology:product_lining } UNION { ?k rdf:type ontology:collection . ?x rdf:type ontology:work_of_art . ?x property:exhibition_history ?k } } GROUP BY ?k } }
[]
collection product lining work of art
SYSTEM
64
Q700959 Q1641836 Q3094695 Q4827110 Q2042148 Q569445 Q1568434 Q864957 Q3469929 Q6840621 Q290549 Q5609661 Q255409 Q1955739 Q277316 Q7570154 Q677561 Q812285 Q1632912 Q18350783 Q3716330 Q1840249 Q4752732 Q2324938 Q6940779 Q324658 Q386286 Q260913 Q656296 Q122945 Q18699920 Q461277 Q7707496 Q1499958 Q273593 Q6123486 Q316514 Q1895953 Q679527 Q4688448 Q2261423 Q958750 Q877714 Q670595 Q2114028 Q1074318 Q23402 Q5210053 Q7007140 Q246821 Q566661 Q3923979 Q162077 Q1410617 Q848313 Q190804 Q1928672 Q902706 Q12064628 Q2475379 Q131617 Q924335 Q879960 Q3309203
(c(Q3084961)|c(Q838948),P608,c(Q2668072))
action count
action approx
action union
action find_reverse_tuple_counts
relation P608
type Q2668072
type Q3084961
action find_reverse_tuple_counts
relation P608
type Q2668072
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q566661
relation P608
type Q3084961
type Q838948
[ANSWER]
[[{'concept': 'Q3084961'}, {'concept': 'Q838948'}], 'P608', {'concept': 'Q2668072'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { ?o property:P608 resource:Q566661 . { { ?o rdf:type ontology:Q3084961 } UNION { ?o rdf:type ontology:Q838948 } } } } . FILTER ( ?q = ?c ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) ?k WHERE { { ?x property:P608 ?k . ?k rdf:type ontology:Q2668072 . ?x rdf:type ontology:Q3084961 } UNION { ?k rdf:type ontology:Q2668072 . ?x rdf:type ontology:Q838948 . ?x property:P608 ?k } } GROUP BY ?k } }
Wallraf-Richartz Museum Los Angeles County Museum of Art Galeries nationales du Grand Palais Autry National Center Witte de With Martin-Gropius-Bau Yale University Art Gallery Tokyo Metropolitan Art Museum Sacre Hall Mid-Atlantic Air Museum Museo Nazionale di Capodimonte Grissom Air Museum Museum Mesdag musée des beaux-arts de Dijon Rembrandt House Museum Southern Museum of Flight Hammer Museum Bavarian State Painting Collections Musée Galliera Palais des Beaux Arts de Charleroi Cathedral of Asolo musée de l'Évêché de Limoges Anchorage Museum Staatsgalerie Altdeutsche Meister Museum of Aviation Kunsthalle Düsseldorf Basel Historical Museum Centraal Museum Galerie nationale du Jeu de Paume Peabody Museum of Natural History Pinacoteca Civica Bruno Molajoli Museum Kunstpalast Texas Air & Space Museum Gemeentemuseum Den Haag École nationale supérieure des Beaux-Arts Chung Cheng Aviation Museum Museum Wiesbaden Musée National d'Art Moderne Museum Boijmans Van Beuningen Aerospace Museum of California Museum of Pavilions Ludwig Museum Budapest Oakland Museum of California Swiss Transport Museum Museum Arnhem National Museum of China Musée d'Orsay Dakota Territory Air Museum New England Air Museum Goya Museum Museum der bildenden Künste Rectory of Saints Michael and Francis Glyptothek Louisiana Museum of Modern Art Fries Museum Rijksmuseum Mu.ZEE Cleveland Museum of Natural History Octave Chanute Aerospace Museum Ulmer Museum Deutsches Museum Stedelijk Museum Amsterdam Kunst- und Ausstellungshalle der Bundesrepublik Deutschland Olympic Flight Museum
64
action count
action approx
action union
action find_reverse_tuple_counts
relation exhibition history
type collection
type product lining
action find_reverse_tuple_counts
relation exhibition history
type collection
type work of art
action count
action filter_multi_types
action find_reverse
entity Museum der bildenden Künste
relation exhibition history
type product lining
type work of art
[[{'concept': 'product lining'}, {'concept': 'work of art'}], 'exhibition history', {'concept': 'collection'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { ?o property:exhibition_history resource:Museum_der_bildenden_Künste . { { ?o rdf:type ontology:product_lining } UNION { ?o rdf:type ontology:work_of_art } } } } . FILTER ( ?q = ?c ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) ?k WHERE { { ?x property:exhibition_history ?k . ?k rdf:type ontology:collection . ?x rdf:type ontology:product_lining } UNION { ?k rdf:type ontology:collection . ?x rdf:type ontology:work_of_art . ?x property:exhibition_history ?k } } GROUP BY ?k } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q3469929
P608
Q2668072 Q3084961 Q838948
USER
And what about Sacre Hall?
(c(Q3084961)|c(Q838948),P608,c(Q2668072))
action count
action approx
action union
action find_reverse_tuple_counts
relation P608
type Q2668072
type Q3084961
action find_reverse_tuple_counts
relation P608
type Q2668072
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q3469929
relation P608
type Q3084961
type Q838948
[[{'concept': 'Q3084961'}, {'concept': 'Q838948'}], 'P608', {'concept': 'Q2668072'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?t ) AS ?h ) WHERE { VALUES ( ?g ) { ( ontology:Q3084961 ) ( ontology:Q838948 ) } . ?t rdf:type ?g } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:P608 resource:Q3469929 . { { ?r rdf:type ontology:Q3084961 } UNION { ?r rdf:type ontology:Q838948 } } } } . FILTER ( ?h = ?j ) }
Sacre Hall
action count
action approx
action union
action find_reverse_tuple_counts
relation exhibition history
type collection
type product lining
action find_reverse_tuple_counts
relation exhibition history
type collection
type work of art
action count
action filter_multi_types
action find_reverse
entity Sacre Hall
relation exhibition history
type product lining
type work of art
[[{'concept': 'product lining'}, {'concept': 'work of art'}], 'exhibition history', {'concept': 'collection'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?t ) AS ?h ) WHERE { VALUES ( ?g ) { ( ontology:product_lining ) ( ontology:work_of_art ) } . ?t rdf:type ?g } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:exhibition_history resource:Sacre_Hall . { { ?r rdf:type ontology:product_lining } UNION { ?r rdf:type ontology:work_of_art } } } } . FILTER ( ?h = ?j ) }
[]
collection product lining work of art
SYSTEM
64
Q700959 Q1641836 Q3094695 Q4827110 Q2042148 Q569445 Q1568434 Q864957 Q3469929 Q6840621 Q290549 Q5609661 Q255409 Q1955739 Q277316 Q7570154 Q677561 Q812285 Q1632912 Q18350783 Q3716330 Q1840249 Q4752732 Q2324938 Q6940779 Q324658 Q386286 Q260913 Q656296 Q122945 Q18699920 Q461277 Q7707496 Q1499958 Q273593 Q6123486 Q316514 Q1895953 Q679527 Q4688448 Q2261423 Q958750 Q877714 Q670595 Q2114028 Q1074318 Q23402 Q5210053 Q7007140 Q246821 Q566661 Q3923979 Q162077 Q1410617 Q848313 Q190804 Q1928672 Q902706 Q12064628 Q2475379 Q131617 Q924335 Q879960 Q3309203
(c(Q3084961)|c(Q838948),P608,c(Q2668072))
action count
action approx
action union
action find_reverse_tuple_counts
relation P608
type Q2668072
type Q3084961
action find_reverse_tuple_counts
relation P608
type Q2668072
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q3469929
relation P608
type Q3084961
type Q838948
[ANSWER]
[[{'concept': 'Q3084961'}, {'concept': 'Q838948'}], 'P608', {'concept': 'Q2668072'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?t ) AS ?h ) WHERE { VALUES ( ?g ) { ( ontology:Q3084961 ) ( ontology:Q838948 ) } . ?t rdf:type ?g } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:P608 resource:Q3469929 . { { ?r rdf:type ontology:Q3084961 } UNION { ?r rdf:type ontology:Q838948 } } } } . FILTER ( ?h = ?j ) }
Wallraf-Richartz Museum Los Angeles County Museum of Art Galeries nationales du Grand Palais Autry National Center Witte de With Martin-Gropius-Bau Yale University Art Gallery Tokyo Metropolitan Art Museum Sacre Hall Mid-Atlantic Air Museum Museo Nazionale di Capodimonte Grissom Air Museum Museum Mesdag musée des beaux-arts de Dijon Rembrandt House Museum Southern Museum of Flight Hammer Museum Bavarian State Painting Collections Musée Galliera Palais des Beaux Arts de Charleroi Cathedral of Asolo musée de l'Évêché de Limoges Anchorage Museum Staatsgalerie Altdeutsche Meister Museum of Aviation Kunsthalle Düsseldorf Basel Historical Museum Centraal Museum Galerie nationale du Jeu de Paume Peabody Museum of Natural History Pinacoteca Civica Bruno Molajoli Museum Kunstpalast Texas Air & Space Museum Gemeentemuseum Den Haag École nationale supérieure des Beaux-Arts Chung Cheng Aviation Museum Museum Wiesbaden Musée National d'Art Moderne Museum Boijmans Van Beuningen Aerospace Museum of California Museum of Pavilions Ludwig Museum Budapest Oakland Museum of California Swiss Transport Museum Museum Arnhem National Museum of China Musée d'Orsay Dakota Territory Air Museum New England Air Museum Goya Museum Museum der bildenden Künste Rectory of Saints Michael and Francis Glyptothek Louisiana Museum of Modern Art Fries Museum Rijksmuseum Mu.ZEE Cleveland Museum of Natural History Octave Chanute Aerospace Museum Ulmer Museum Deutsches Museum Stedelijk Museum Amsterdam Kunst- und Ausstellungshalle der Bundesrepublik Deutschland Olympic Flight Museum
64
action count
action approx
action union
action find_reverse_tuple_counts
relation exhibition history
type collection
type product lining
action find_reverse_tuple_counts
relation exhibition history
type collection
type work of art
action count
action filter_multi_types
action find_reverse
entity Sacre Hall
relation exhibition history
type product lining
type work of art
[[{'concept': 'product lining'}, {'concept': 'work of art'}], 'exhibition history', {'concept': 'collection'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?t ) AS ?h ) WHERE { VALUES ( ?g ) { ( ontology:product_lining ) ( ontology:work_of_art ) } . ?t rdf:type ?g } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:exhibition_history resource:Sacre_Hall . { { ?r rdf:type ontology:product_lining } UNION { ?r rdf:type ontology:work_of_art } } } } . FILTER ( ?h = ?j ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q3915
P206
Q337567 Q355304 Q515
USER
How many cities are located in the neighbourhood of lesser number of still waterss and watercourses than Antananarivo ?
(c(Q515),P206,c(Q337567)|c(Q355304))
action count
action less
action union
action find_tuple_counts
relation P206
type Q515
type Q337567
action find_tuple_counts
relation P206
type Q515
type Q355304
action count
action filter_multi_types
action find
entity Q3915
relation P206
type Q337567
type Q355304
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?t ) WHERE { VALUES ( ?r ) { ( ontology:Q337567 ) ( ontology:Q355304 ) } . ?z rdf:type ?r } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { { ?o rdf:type ontology:Q337567 } UNION { ?o rdf:type ontology:Q355304 } } . resource:Q3915 property:P206 ?o } } . FILTER ( ?t < ?i ) }
Antananarivo
action count
action less
action union
action find_tuple_counts
relation located next to body of water
type city
type still waters
action find_tuple_counts
relation located next to body of water
type city
type watercourse
action count
action filter_multi_types
action find
entity Antananarivo
relation located next to body of water
type still waters
type watercourse
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?t ) WHERE { VALUES ( ?r ) { ( ontology:still_waters ) ( ontology:watercourse ) } . ?z rdf:type ?r } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { { ?o rdf:type ontology:still_waters } UNION { ?o rdf:type ontology:watercourse } } . resource:Antananarivo property:located_next_to_body_of_water ?o } } . FILTER ( ?t < ?i ) }
[]
still waters watercourse city
SYSTEM
18
Q1410 Q1519 Q846877 Q1486 Q602903 Q488869 Q217432 Q3572 Q623549 Q34261 Q612815 Q7473516 Q3826 Q41474 Q23661 Q3751 Q847550 Q3861
(c(Q515),P206,c(Q337567)|c(Q355304))
action count
action less
action union
action find_tuple_counts
relation P206
type Q515
type Q337567
action find_tuple_counts
relation P206
type Q515
type Q355304
action count
action filter_multi_types
action find
entity Q3915
relation P206
type Q337567
type Q355304
[ANSWER]
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?t ) WHERE { VALUES ( ?r ) { ( ontology:Q337567 ) ( ontology:Q355304 ) } . ?z rdf:type ?r } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { { ?o rdf:type ontology:Q337567 } UNION { ?o rdf:type ontology:Q355304 } } . resource:Q3915 property:P206 ?o } } . FILTER ( ?t < ?i ) }
Gibraltar Abu Dhabi Semboku Buenos Aires Yurihonjō Benalmádena Port Harcourt Tunis Puerto de la Cruz Port-au-Prince Garachico Tokyo Muscat Kingstown Wellington Praia Nikaho Doha
18
action count
action less
action union
action find_tuple_counts
relation located next to body of water
type city
type still waters
action find_tuple_counts
relation located next to body of water
type city
type watercourse
action count
action filter_multi_types
action find
entity Antananarivo
relation located next to body of water
type still waters
type watercourse
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?t ) WHERE { VALUES ( ?r ) { ( ontology:still_waters ) ( ontology:watercourse ) } . ?z rdf:type ?r } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { { ?o rdf:type ontology:still_waters } UNION { ?o rdf:type ontology:watercourse } } . resource:Antananarivo property:located_next_to_body_of_water ?o } } . FILTER ( ?t < ?i ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1711
P206
Q337567 Q355304 Q515
USER
And what about Potsdam?
(c(Q515),P206,c(Q337567)|c(Q355304))
action count
action less
action union
action find_tuple_counts
relation P206
type Q515
type Q337567
action find_tuple_counts
relation P206
type Q515
type Q355304
action count
action filter_multi_types
action find
entity Q1711
relation P206
type Q337567
type Q355304
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) ?i WHERE { { ?i property:P206 ?s . ?s rdf:type ontology:Q355304 . ?i rdf:type ontology:Q515 } UNION { ?i property:P206 ?s . ?s rdf:type ontology:Q337567 . ?i rdf:type ontology:Q515 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) WHERE { resource:Q1711 property:P206 ?u . { { ?u rdf:type ontology:Q355304 } UNION { ?u rdf:type ontology:Q337567 } } } } . FILTER ( ?t < ?p ) }
Potsdam
action count
action less
action union
action find_tuple_counts
relation located next to body of water
type city
type still waters
action find_tuple_counts
relation located next to body of water
type city
type watercourse
action count
action filter_multi_types
action find
entity Potsdam
relation located next to body of water
type still waters
type watercourse
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) ?i WHERE { { ?i property:located_next_to_body_of_water ?s . ?s rdf:type ontology:watercourse . ?i rdf:type ontology:city } UNION { ?i property:located_next_to_body_of_water ?s . ?s rdf:type ontology:still_waters . ?i rdf:type ontology:city } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) WHERE { resource:Potsdam property:located_next_to_body_of_water ?u . { { ?u rdf:type ontology:watercourse } UNION { ?u rdf:type ontology:still_waters } } } } . FILTER ( ?t < ?p ) }
[]
still waters watercourse city
SYSTEM
98
Q1410 Q3075 Q1794 Q1863 Q1865 Q1519 Q496499 Q3974 Q846877 Q19689 Q1486 Q2966 Q34217 Q496479 Q602903 Q3004 Q1461 Q488869 Q217432 Q827041 Q3572 Q623549 Q2865 Q4024 Q2978 Q3806 Q2973 Q34261 Q3014 Q1773 Q1844 Q14821 Q819587 Q3958 Q3955 Q23430 Q633272 Q2773 Q612815 Q320943 Q1858 Q633935 Q320416 Q7473516 Q1761 Q890122 Q4007 Q2706 Q7070 Q3826 Q653545 Q8684 Q270704 Q41474 Q2749 Q4174 Q4346 Q3838 Q2833 Q1209 Q23661 Q3931 Q3751 Q3750 Q3200 Q3126 Q3042 Q157835 Q3046 Q847550 Q3936 Q2936 Q646780 Q3214 Q2100 Q1533 Q1530 Q1731 Q1953 Q5838 Q7027 Q3857 Q3994 Q19660 Q11194 Q3915 Q2119 Q3069 Q1720 Q1721 Q329996 Q3904 Q695920 Q2910 Q3861 Q1899 Q2999 Q2844
(c(Q515),P206,c(Q337567)|c(Q355304))
action count
action less
action union
action find_tuple_counts
relation P206
type Q515
type Q337567
action find_tuple_counts
relation P206
type Q515
type Q355304
action count
action filter_multi_types
action find
entity Q1711
relation P206
type Q337567
type Q355304
[ANSWER]
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) ?i WHERE { { ?i property:P206 ?s . ?s rdf:type ontology:Q355304 . ?i rdf:type ontology:Q515 } UNION { ?i property:P206 ?s . ?s rdf:type ontology:Q337567 . ?i rdf:type ontology:Q515 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) WHERE { resource:Q1711 property:P206 ?u . { { ?u rdf:type ontology:Q355304 } UNION { ?u rdf:type ontology:Q337567 } } } } . FILTER ( ?t < ?p ) }
Gibraltar Fürth Frankfurt Andorra la Vella Kuala Lumpur Abu Dhabi Kazuno Landshut Semboku Tirana Buenos Aires Heidelberg Oxford Yokote Yurihonjō Ingolstadt Manila Benalmádena Port Harcourt Beroun Tunis Puerto de la Cruz Kassel Frankfurt (Oder) Regensburg Tübingen Darmstadt Port-au-Prince Wolfsburg Riga Vaduz Coburg Noshiro Neubrandenburg Weimar Ulaanbaatar Yuzawa Braunschweig Garachico Matsudo Hanoi Oga Tartessos Tokyo Dublin Bolhrad Rosenheim Bremerhaven Eisenach Muscat Kita-Akita Seoul Třebíč Kingstown Augsburg Emden Waren (Müritz) Kinshasa Freiburg im Breisgau Free Hanseatic City of Bremen Wellington Brandenburg an der Havel Praia Gera Salzgitter Erlangen Offenbach am Main Zaporizhzhya Pforzheim Nikaho Bamberg Oldenburg Katagami Cottbus Duisburg Caracas Baghdad Dresden Yerevan Kabul Straubing Wilhelmshaven Kempten Bucharest Sarajevo Antananarivo Mannheim Bottrop Mainz Wiesbaden Ōdate Mbabane Daisen Ludwigshafen Doha Kyiv Würzburg Brasília
98
action count
action less
action union
action find_tuple_counts
relation located next to body of water
type city
type still waters
action find_tuple_counts
relation located next to body of water
type city
type watercourse
action count
action filter_multi_types
action find
entity Potsdam
relation located next to body of water
type still waters
type watercourse
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) ?i WHERE { { ?i property:located_next_to_body_of_water ?s . ?s rdf:type ontology:watercourse . ?i rdf:type ontology:city } UNION { ?i property:located_next_to_body_of_water ?s . ?s rdf:type ontology:still_waters . ?i rdf:type ontology:city } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) WHERE { resource:Potsdam property:located_next_to_body_of_water ?u . { { ?u rdf:type ontology:watercourse } UNION { ?u rdf:type ontology:still_waters } } } } . FILTER ( ?t < ?p ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1037
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relations with more number of political territories than Rwanda ?
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1037
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?w ) WHERE { ?d property:P530 ?j . ?d rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 } GROUP BY ?d } . FILTER ( ?w > ?b ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { resource:Q1037 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } }
Rwanda
action greater
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 Rwanda
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?w ) WHERE { ?d property:diplomatic_relation ?j . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?d } . FILTER ( ?w > ?b ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { resource:Rwanda property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity political territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q233 Q20 Q1041 Q27 Q843 Q1029 Q1028 Q736 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1037
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with more number of political territories than Rwanda
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?w ) WHERE { ?d property:P530 ?j . ?d rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 } GROUP BY ?d } . FILTER ( ?w > ?b ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { resource:Q1037 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Malta Norway Senegal Ireland Pakistan Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
Italy, Brazil and United States of America have diplomatic relations with more number of political territories than Rwanda
Italy Brazil United States of America
action greater
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 Rwanda
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?w ) WHERE { ?d property:diplomatic_relation ?j . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?d } . FILTER ( ?w > ?b ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { resource:Rwanda property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q38 Q155 Q30
P463
Q484652
USER
What international organizations had those administrative territories as their member ?
(Q38,P463,c(Q484652)) (Q155,P463,c(Q484652)) (Q30,P463,c(Q484652))
action filter_type
action find
entity prev_answer
relation P463
type Q484652
['Q38', 'P463', {'concept': 'Q484652'}] ['Q155', 'P463', {'concept': 'Q484652'}] ['Q30', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?w WHERE { VALUES ( ?a ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q800 ) } . ?a property:P463 ?w . ?w rdf:type ontology:Q484652 }
Italy Brazil United States of America
action filter_type
action find
entity prev_answer
relation member of
type international organization
['Italy', 'member of', {'concept': 'international organization'}] ['Brazil', 'member of', {'concept': 'international organization'}] ['United States of America', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?w WHERE { VALUES ( ?a ) { ( resource:Panama ) ( resource:Israel ) ( resource:Costa_Rica ) } . ?a property:member_of ?w . ?w rdf:type ontology:international_organization }
[]
international organization
Q81299 Q81299 Q19771
SYSTEM
Organization for Security and Co-operation in Europe for 1st, 2nd, G20 for 3rd
Q81299 Q1065 Q826700 Q605326 Q47488 Q7184 Q42262 Q1045198 Q472311 Q8475 Q1480793 Q188822 Q170424 Q201054 Q7804 Q842490 Q19771 Q54129 Q1411881 Q17495 Q192177 Q37143 Q176815 Q182000 Q233611 Q1043527 Q471690 Q1065 Q838116 Q47488 Q8475 Q19771 Q17495 Q4230 Q1043527 Q81299 Q1043527 Q1065 Q37143 Q188822 Q674182 Q842490 Q19771 Q7184
(Q38,P463,c(Q484652)) (Q155,P463,c(Q484652)) (Q30,P463,c(Q484652))
action filter_type
action find
entity prev_answer
relation P463
type Q484652
[ANSWERS]
['Q38', 'P463', {'concept': 'Q484652'}] ['Q155', 'P463', {'concept': 'Q484652'}] ['Q30', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?w WHERE { VALUES ( ?a ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q800 ) } . ?a property:P463 ?w . ?w rdf:type ontology:Q484652 }
Organization for Security and Co-operation in Europe United Nations International Energy Agency World Customs Organization International Criminal Court North Atlantic Treaty Organisation European Space Agency Permanent Court of Arbitration International Organization for Migration Interpol Nuclear Suppliers Group Asian Development Bank World Meteorological Organization International Maritime Organization International Monetary Fund Organisation for the Prohibition of Chemical Weapons G20 International Labour Organization Group of Ten Universal Postal Union Union for the Mediterranean G8 Inter-Parliamentary Union United Nations Conference on Trade and Development International Hydrographic Organization Multilateral Investment Guarantee Agency Andean Community of Nations United Nations G4 nations International Criminal Court Interpol G20 Universal Postal Union Union of South American Nations Multilateral Investment Guarantee Agency Organization for Security and Co-operation in Europe Multilateral Investment Guarantee Agency United Nations G8 Asian Development Bank Arctic Council Organisation for the Prohibition of Chemical Weapons G20 North Atlantic Treaty Organisation
Organization for Security and Co-operation in Europe, Organization for Security and Co-operation in Europe and G20 had those administrative territories as their member
Organization for Security and Co-operation in Europe Organization for Security and Co-operation in Europe G20
action filter_type
action find
entity prev_answer
relation member of
type international organization
['Italy', 'member of', {'concept': 'international organization'}] ['Brazil', 'member of', {'concept': 'international organization'}] ['United States of America', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?w WHERE { VALUES ( ?a ) { ( resource:Panama ) ( resource:Israel ) ( resource:Costa_Rica ) } . ?a property:member_of ?w . ?w rdf:type ontology:international_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1635096
P20
Q515
USER
Where did the demise of Hugo Güldner occur ?
(Q1635096,P20,c(Q515))
action filter_type
action find
entity Q1635096
relation P20
type Q515
['Q1635096', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q515 . resource:Q1635096 property:P20 ?t }
Hugo Güldner
action filter_type
action find
entity Hugo Güldner
relation place of death
type city
['Hugo Güldner', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:city . resource:Hugo_Güldner property:place_of_death ?t }
[]
city
Q1794
SYSTEM
Frankfurt
Q1794
(Q1635096,P20,c(Q515))
action filter_type
action find
entity Q1635096
relation P20
type Q515
The demise of Hugo Güldner occurred in [ANSWER]
['Q1635096', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q515 . resource:Q1635096 property:P20 ?t }
Frankfurt
The demise of Hugo Güldner occurred in Frankfurt
Frankfurt
action filter_type
action find
entity Hugo Güldner
relation place of death
type city
['Hugo Güldner', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:city . resource:Hugo_Güldner property:place_of_death ?t }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1635096
P19
Q15617994
USER
Which administrative territory is the place of birth of that person ?
(Q1794,P19,c(Q15617994))
action filter_type
action find
entity Q1635096
relation P19
type Q15617994
['Q1794', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q1635096 property:P19 ?g . ?g rdf:type ontology:Q15617994 }
Hugo Güldner
action filter_type
action find
entity Hugo Güldner
relation place of birth
type designation for an administrative territorial entity
['Frankfurt', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Hugo_Güldner property:place_of_birth ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q11337
SYSTEM
Herdecke
Q11337
(Q1794,P19,c(Q15617994))
action filter_type
action find
entity Q1635096
relation P19
type Q15617994
[ANSWER] is the place of birth of that person
['Q1794', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q1635096 property:P19 ?g . ?g rdf:type ontology:Q15617994 }
Herdecke
Herdecke is the place of birth of that person
Herdecke
action filter_type
action find
entity Hugo Güldner
relation place of birth
type designation for an administrative territorial entity
['Frankfurt', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Hugo_Güldner property:place_of_birth ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1376
Q515 Q13220204 Q515
USER
Which cities are the capital of max number of cities and administrative country subdivisions ?
(c(Q515),P1376,c(Q515)|c(Q13220204))
action argmax
action union
action find_tuple_counts
relation P1376
type Q515
type Q515
action find_tuple_counts
relation P1376
type Q515
type Q13220204
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q515'}, {'concept': 'Q13220204'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?b ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) ?x WHERE { ?r rdf:type ?k . VALUES ( ?k ) { ( ontology:Q13220204 ) ( ontology:Q515 ) } } GROUP BY ?x } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) ?a WHERE { { ?a property:P1376 ?z . ?z rdf:type ontology:Q515 . ?a rdf:type ontology:Q515 } UNION { ?a property:P1376 ?z . ?a rdf:type ontology:Q515 . ?z rdf:type ontology:Q13220204 } } GROUP BY ?a } . FILTER ( ?u = ?b ) }
action argmax
action union
action find_tuple_counts
relation capital of
type city
type city
action find_tuple_counts
relation capital of
type city
type second-level administrative country subdivision
[{'concept': 'city'}, 'capital of', [{'concept': 'city'}, {'concept': 'second-level administrative country subdivision'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?b ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) ?x WHERE { ?r rdf:type ?k . VALUES ( ?k ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:city ) } } GROUP BY ?x } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) ?a WHERE { { ?a property:capital_of ?z . ?z rdf:type ontology:city . ?a rdf:type ontology:city } UNION { ?a property:capital_of ?z . ?a rdf:type ontology:city . ?z rdf:type ontology:second-level_administrative_country_subdivision } } GROUP BY ?a } . FILTER ( ?u = ?b ) }
[]
city second-level administrative country subdivision city
Q6602
SYSTEM
Strasbourg
Q6602
(c(Q515),P1376,c(Q515)|c(Q13220204))
action argmax
action union
action find_tuple_counts
relation P1376
type Q515
type Q515
action find_tuple_counts
relation P1376
type Q515
type Q13220204
[ANSWER] is the capital of max number of cities and administrative country subdivisions
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q515'}, {'concept': 'Q13220204'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?b ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) ?x WHERE { ?r rdf:type ?k . VALUES ( ?k ) { ( ontology:Q13220204 ) ( ontology:Q515 ) } } GROUP BY ?x } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) ?a WHERE { { ?a property:P1376 ?z . ?z rdf:type ontology:Q515 . ?a rdf:type ontology:Q515 } UNION { ?a property:P1376 ?z . ?a rdf:type ontology:Q515 . ?z rdf:type ontology:Q13220204 } } GROUP BY ?a } . FILTER ( ?u = ?b ) }
Strasbourg
Strasbourg is the capital of max number of cities and administrative country subdivisions
Strasbourg
action argmax
action union
action find_tuple_counts
relation capital of
type city
type city
action find_tuple_counts
relation capital of
type city
type second-level administrative country subdivision
[{'concept': 'city'}, 'capital of', [{'concept': 'city'}, {'concept': 'second-level administrative country subdivision'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?b ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) ?x WHERE { ?r rdf:type ?k . VALUES ( ?k ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:city ) } } GROUP BY ?x } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) ?a WHERE { { ?a property:capital_of ?z . ?z rdf:type ontology:city . ?a rdf:type ontology:city } UNION { ?a property:capital_of ?z . ?a rdf:type ontology:city . ?z rdf:type ontology:second-level_administrative_country_subdivision } } GROUP BY ?a } . FILTER ( ?u = ?b ) }
[]