Simple Question (Direct)
Simple Question
Q1468180
P21
Q290
USER
What is the sex of Fritz Schellong ?
(Q1468180,P21,c(Q290))
action filter_type
action find
entity Q1468180
relation P21
type Q290
['Q1468180', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q1468180 property:P21 ?x . ?x rdf:type ontology:Q290 }
Fritz Schellong
action filter_type
action find
entity Fritz Schellong
relation gender
type sex
['Fritz Schellong', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Fritz_Schellong property:gender ?x . ?x rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1468180,P21,c(Q290))
action filter_type
action find
entity Q1468180
relation P21
type Q290
The sex of Fritz Schellong is the [ANSWER]
['Q1468180', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q1468180 property:P21 ?x . ?x rdf:type ontology:Q290 }
male
The sex of Fritz Schellong is the male
male
action filter_type
action find
entity Fritz Schellong
relation gender
type sex
['Fritz Schellong', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Fritz_Schellong property:gender ?x . ?x rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1468180
P607
Q198
USER
What battle was Fritz Schellong a part of ?
(Q1468180,P607,c(Q198))
action filter_type
action find
entity Q1468180
relation P607
type Q198
['Q1468180', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q198 . resource:Q1468180 property:P607 ?h }
Fritz Schellong
action filter_type
action find
entity Fritz Schellong
relation conflict
type war
['Fritz Schellong', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:war . resource:Fritz_Schellong property:conflict ?h }
[]
war
Q361
SYSTEM
World War I
Q361
(Q1468180,P607,c(Q198))
action filter_type
action find
entity Q1468180
relation P607
type Q198
What battle was Fritz Schellong a part of
['Q1468180', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q198 . resource:Q1468180 property:P607 ?h }
World War I
What battle was Fritz Schellong a part of
World War I
action filter_type
action find
entity Fritz Schellong
relation conflict
type war
['Fritz Schellong', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:war . resource:Fritz_Schellong property:conflict ?h }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1468180
P19
Q56061
USER
Which administrative territory is the birthplace of that person ?
(Q361,P19,c(Q56061))
action filter_type
action find
entity Q1468180
relation P19
type Q56061
['Q361', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q1468180 property:P19 ?b . ?b rdf:type ontology:Q56061 }
Fritz Schellong
action filter_type
action find
entity Fritz Schellong
relation place of birth
type administrative territorial entity
['World War I', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Fritz_Schellong property:place_of_birth ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q4120832
SYSTEM
Königsberg
Q4120832
(Q361,P19,c(Q56061))
action filter_type
action find
entity Q1468180
relation P19
type Q56061
[ANSWER] is the birthplace of that person
['Q361', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q1468180 property:P19 ?b . ?b rdf:type ontology:Q56061 }
Königsberg
Königsberg is the birthplace of that person
Königsberg
action filter_type
action find
entity Fritz Schellong
relation place of birth
type administrative territorial entity
['World War I', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Fritz_Schellong property:place_of_birth ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P840
Q56061 Q166142 Q15416
USER
Which administrative territories are the narrative locations of approximately 113 applications or television programs ?
(c(Q166142)|c(Q15416),P840,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
value 113
[[{'concept': 'Q166142'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) ?f WHERE { { ?a property:P840 ?f . ?a rdf:type ontology:Q166142 . ?f rdf:type ontology:Q56061 } UNION { ?a property:P840 ?f . ?f rdf:type ontology:Q56061 . ?a rdf:type ontology:Q15416 } } GROUP BY ?f } . FILTER ( ?i = 113 ) }
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
value 113
[[{'concept': 'application'}, {'concept': 'television program'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) ?f WHERE { { ?a property:narrative_location ?f . ?a rdf:type ontology:application . ?f rdf:type ontology:administrative_territorial_entity } UNION { ?a property:narrative_location ?f . ?f rdf:type ontology:administrative_territorial_entity . ?a rdf:type ontology:television_program } } GROUP BY ?f } . FILTER ( ?i = 113 ) }
[]
administrative territorial entity application television program
Q90 Q62 Q1297
SYSTEM
Paris, San Francisco, Chicago
Q90 Q3130 Q1297 Q62 Q18125
(c(Q166142)|c(Q15416),P840,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
value 113
[ANSWERS] are the narrative locations of approximately 113 applications or television programs
[[{'concept': 'Q166142'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) ?f WHERE { { ?a property:P840 ?f . ?a rdf:type ontology:Q166142 . ?f rdf:type ontology:Q56061 } UNION { ?a property:P840 ?f . ?f rdf:type ontology:Q56061 . ?a rdf:type ontology:Q15416 } } GROUP BY ?f } . FILTER ( ?i = 113 ) }
Paris Sydney Chicago San Francisco Manchester
Paris, San Francisco and Chicago are the narrative locations of approximately 113 applications or television programs
Paris San Francisco Chicago
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
value 113
[[{'concept': 'application'}, {'concept': 'television program'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) ?f WHERE { { ?a property:narrative_location ?f . ?a rdf:type ontology:application . ?f rdf:type ontology:administrative_territorial_entity } UNION { ?a property:narrative_location ?f . ?f rdf:type ontology:administrative_territorial_entity . ?a rdf:type ontology:television_program } } GROUP BY ?f } . FILTER ( ?i = 113 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q90
P166
Q618779 Q5127848
USER
How many awards or classes were awarded to Paris ?
(Q90,P166,c(Q618779)) (Q90,P166,c(Q5127848))
action count
action union
action filter_type
action find
entity Q90
relation P166
type Q618779
action filter_type
action find
entity Q90
relation P166
type Q5127848
['Q90', 'P166', {'concept': 'Q618779'}] ['Q90', 'P166', {'concept': 'Q5127848'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { ?b rdf:type ?v . VALUES ( ?v ) { ( ontology:Q618779 ) ( ontology:Q5127848 ) } }
Paris
action count
action union
action filter_type
action find
entity Paris
relation award received
type award
action filter_type
action find
entity Paris
relation award received
type class
['Paris', 'award received', {'concept': 'award'}] ['Paris', 'award received', {'concept': 'class'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { ?b rdf:type ?v . VALUES ( ?v ) { ( ontology:award ) ( ontology:class ) } }
[]
award class
SYSTEM
2
Q163700 Q2727598
(Q90,P166,c(Q618779)) (Q90,P166,c(Q5127848))
action count
action union
action filter_type
action find
entity Q90
relation P166
type Q618779
action filter_type
action find
entity Q90
relation P166
type Q5127848
[ANSWER]
['Q90', 'P166', {'concept': 'Q618779'}] ['Q90', 'P166', {'concept': 'Q5127848'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { ?b rdf:type ?v . VALUES ( ?v ) { ( ontology:Q618779 ) ( ontology:Q5127848 ) } }
Legion of Honour Croix de guerre 1914–1918
2
action count
action union
action filter_type
action find
entity Paris
relation award received
type award
action filter_type
action find
entity Paris
relation award received
type class
['Paris', 'award received', {'concept': 'award'}] ['Paris', 'award received', {'concept': 'class'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { ?b rdf:type ?v . VALUES ( ?v ) { ( ontology:award ) ( ontology:class ) } }
[]
Logical Reasoning (All)
Logical|Difference|Single_Relation
Q1757 Q1297
P190
Q56061
USER
Which administrative territories are sister towns of Chicago but not Helsinki ?
AND((Q1297,P190,c(Q56061)), NOT((Q1757,P190,c(Q56061))))
action filter_type
action difference
action find
entity Q1297
relation P190
action find
entity Q1757
relation P190
type Q56061
{'AND': [['Q1297', 'P190', {'concept': 'Q56061'}], {'NOT': [['Q1757', 'P190', {'concept': 'Q56061'}]]}]}
SELECT DISTINCT ?h WHERE { MINUS { resource:Q1757 property:P190 ?h } . resource:Q1297 property:P190 ?h . ?h rdf:type ontology:Q56061 }
Helsinki Chicago
action filter_type
action difference
action find
entity Chicago
relation sister city
action find
entity Helsinki
relation sister city
type administrative territorial entity
{'AND': [['Chicago', 'sister city', {'concept': 'administrative territorial entity'}], {'NOT': [['Helsinki', 'sister city', {'concept': 'administrative territorial entity'}]]}]}
SELECT DISTINCT ?h WHERE { MINUS { resource:Helsinki property:sister_city ?h } . resource:Chicago property:sister_city ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q270 Q172 Q152406 Q3805 Q129610 Q1524 Q3761 Q1718 Q1489 Q5468
SYSTEM
Some of them are Warsaw, Toronto, Kiryat Gat, Amman, Galway, Athens, Accra, Düsseldorf, Mexico City, Durban
Q987 Q174 Q216 Q172 Q5468 Q1353 Q6487 Q649 Q3761 Q490 Q3711 Q1524 Q270 Q190828 Q42800 Q1489 Q3805 Q129610 Q1718 Q152406
AND((Q1297,P190,c(Q56061)), NOT((Q1757,P190,c(Q56061))))
action filter_type
action difference
action find
entity Q1297
relation P190
action find
entity Q1757
relation P190
type Q56061
[ANSWERS] are sister towns of Chicago but not Helsinki
{'AND': [['Q1297', 'P190', {'concept': 'Q56061'}], {'NOT': [['Q1757', 'P190', {'concept': 'Q56061'}]]}]}
SELECT DISTINCT ?h WHERE { MINUS { resource:Q1757 property:P190 ?h } . resource:Q1297 property:P190 ?h . ?h rdf:type ontology:Q56061 }
New Delhi São Paulo Vilnius Toronto Durban Delhi Antalya Moscow Accra Milan Belgrade Athens Warsaw Petah Tikva Belo Horizonte Mexico City Amman Galway Düsseldorf Kiryat Gat
Warsaw, Toronto, Kiryat Gat, Amman, Galway, Athens, Accra, Düsseldorf, Mexico City and Durban are sister towns of Chicago but not Helsinki
Warsaw Toronto Kiryat Gat Amman Galway Athens Accra Düsseldorf Mexico City Durban
action filter_type
action difference
action find
entity Chicago
relation sister city
action find
entity Helsinki
relation sister city
type administrative territorial entity
{'AND': [['Chicago', 'sister city', {'concept': 'administrative territorial entity'}], {'NOT': [['Helsinki', 'sister city', {'concept': 'administrative territorial entity'}]]}]}
SELECT DISTINCT ?h WHERE { MINUS { resource:Helsinki property:sister_city ?h } . resource:Chicago property:sister_city ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q11618321
P190
Q56061
USER
Are Eda-Kita twin town of those ones ?
(Q11618321,P190,Q270) (Q11618321,P190,Q172) (Q11618321,P190,Q152406) (Q11618321,P190,Q3805) (Q11618321,P190,Q129610) (Q11618321,P190,Q1524) (Q11618321,P190,Q3761) (Q11618321,P190,Q1718) (Q11618321,P190,Q1489) (Q11618321,P190,Q5468)
action is_in
entity prev_answer
action find
entity Q11618321
relation P190
['Q11618321', 'P190', 'Q270'] ['Q11618321', 'P190', 'Q172'] ['Q11618321', 'P190', 'Q152406'] ['Q11618321', 'P190', 'Q3805'] ['Q11618321', 'P190', 'Q129610'] ['Q11618321', 'P190', 'Q1524'] ['Q11618321', 'P190', 'Q3761'] ['Q11618321', 'P190', 'Q1718'] ['Q11618321', 'P190', 'Q1489'] ['Q11618321', 'P190', 'Q5468']
ASK WHERE { VALUES ( ?h ) { ( resource:Q987 ) ( resource:Q174 ) ( resource:Q216 ) } . resource:Q11618321 property:P190 ?h }
Eda-Kita
action is_in
entity prev_answer
action find
entity Eda-Kita
relation sister city
['Eda-Kita', 'sister city', 'Warsaw'] ['Eda-Kita', 'sister city', 'Toronto'] ['Eda-Kita', 'sister city', 'Kiryat Gat'] ['Eda-Kita', 'sister city', 'Amman'] ['Eda-Kita', 'sister city', 'Galway'] ['Eda-Kita', 'sister city', 'Athens'] ['Eda-Kita', 'sister city', 'Accra'] ['Eda-Kita', 'sister city', 'Düsseldorf'] ['Eda-Kita', 'sister city', 'Mexico City'] ['Eda-Kita', 'sister city', 'Durban']
ASK WHERE { VALUES ( ?h ) { ( resource:New_Delhi ) ( resource:São_Paulo ) ( resource:Vilnius ) } . resource:Eda-Kita property:sister_city ?h }
[]
administrative territorial entity
SYSTEM
NO
(Q11618321,P190,Q270) (Q11618321,P190,Q172) (Q11618321,P190,Q152406) (Q11618321,P190,Q3805) (Q11618321,P190,Q129610) (Q11618321,P190,Q1524) (Q11618321,P190,Q3761) (Q11618321,P190,Q1718) (Q11618321,P190,Q1489) (Q11618321,P190,Q5468)
action is_in
entity prev_answer
action find
entity Q11618321
relation P190
[ANSWER]
['Q11618321', 'P190', 'Q270'] ['Q11618321', 'P190', 'Q172'] ['Q11618321', 'P190', 'Q152406'] ['Q11618321', 'P190', 'Q3805'] ['Q11618321', 'P190', 'Q129610'] ['Q11618321', 'P190', 'Q1524'] ['Q11618321', 'P190', 'Q3761'] ['Q11618321', 'P190', 'Q1718'] ['Q11618321', 'P190', 'Q1489'] ['Q11618321', 'P190', 'Q5468']
ASK WHERE { VALUES ( ?h ) { ( resource:Q987 ) ( resource:Q174 ) ( resource:Q216 ) } . resource:Q11618321 property:P190 ?h }
No
action is_in
entity prev_answer
action find
entity Eda-Kita
relation sister city
['Eda-Kita', 'sister city', 'Warsaw'] ['Eda-Kita', 'sister city', 'Toronto'] ['Eda-Kita', 'sister city', 'Kiryat Gat'] ['Eda-Kita', 'sister city', 'Amman'] ['Eda-Kita', 'sister city', 'Galway'] ['Eda-Kita', 'sister city', 'Athens'] ['Eda-Kita', 'sister city', 'Accra'] ['Eda-Kita', 'sister city', 'Düsseldorf'] ['Eda-Kita', 'sister city', 'Mexico City'] ['Eda-Kita', 'sister city', 'Durban']
ASK WHERE { VALUES ( ?h ) { ( resource:New_Delhi ) ( resource:São_Paulo ) ( resource:Vilnius ) } . resource:Eda-Kita property:sister_city ?h }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q50617 Q1468180
P47 P27
Q1048835
USER
Which political territories are the countries of citizenship of Fritz Schellong or share border with Oppland ?
OR((Q1468180,P27,c(Q1048835)), (Q50617,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1468180
relation P27
action find
entity Q50617
relation P47
type Q1048835
{'OR': [['Q1468180', 'P27', {'concept': 'Q1048835'}], ['Q50617', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q1468180 property:P27 ?f } UNION { resource:Q50617 property:P47 ?f } } . ?f rdf:type ontology:Q1048835 }
Oppland Fritz Schellong
action filter_type
action union
action find
entity Fritz Schellong
relation country of citizenship
action find
entity Oppland
relation shares border with
type political territorial entity
{'OR': [['Fritz Schellong', 'country of citizenship', {'concept': 'political territorial entity'}], ['Oppland', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Fritz_Schellong property:country_of_citizenship ?f } UNION { resource:Oppland property:shares_border_with ?f } } . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q50615 Q50616 Q50626 Q50627 Q50628 Q50618
SYSTEM
Germany, Akershus, Hedmark, Sogn og Fjordane, Møre og Romsdal, Sør-Trøndelag, Buskerud
Q183 Q50615 Q50616 Q50626 Q50627 Q50628 Q50618
OR((Q1468180,P27,c(Q1048835)), (Q50617,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1468180
relation P27
action find
entity Q50617
relation P47
type Q1048835
[ANSWERS] are the countries of citizenship of Fritz Schellong or share border with Oppland
{'OR': [['Q1468180', 'P27', {'concept': 'Q1048835'}], ['Q50617', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q1468180 property:P27 ?f } UNION { resource:Q50617 property:P47 ?f } } . ?f rdf:type ontology:Q1048835 }
Germany Akershus Hedmark Sogn og Fjordane Møre og Romsdal Sør-Trøndelag Buskerud
Germany, Akershus, Hedmark, Sogn og Fjordane, Møre og Romsdal, Sør-Trøndelag and Buskerud are the countries of citizenship of Fritz Schellong or share border with Oppland
Germany Akershus Hedmark Sogn og Fjordane Møre og Romsdal Sør-Trøndelag Buskerud
action filter_type
action union
action find
entity Fritz Schellong
relation country of citizenship
action find
entity Oppland
relation shares border with
type political territorial entity
{'OR': [['Fritz Schellong', 'country of citizenship', {'concept': 'political territorial entity'}], ['Oppland', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Fritz_Schellong property:country_of_citizenship ?f } UNION { resource:Oppland property:shares_border_with ?f } } . ?f rdf:type ontology:political_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P1427
Q1048835 Q2912397 Q18608583
USER
How many political territories do lesser number of single-day races or recurring sporting events originate from than that political territory ?
(c(Q2912397)|c(Q18608583),P1427,c(Q1048835))
[[{'concept': 'Q2912397'}, {'concept': 'Q18608583'}], 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q2912397 . ?y rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q18608583 }
[[{'concept': 'single-day race'}, {'concept': 'recurring sporting event'}], 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:single-day_race . ?y rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:recurring_sporting_event }
[]
political territorial entity single-day race recurring sporting event
Comparative|Count over More/Less|Mult. entity type|Clarification
Q50626
SYSTEM
Did you mean Sogn og Fjordane ?
(c(Q2912397)|c(Q18608583),P1427,c(Q1048835))
[ANSWER]
[[{'concept': 'Q2912397'}, {'concept': 'Q18608583'}], 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q2912397 . ?y rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q18608583 }
Did you mean Sogn og Fjordane ?
Sogn og Fjordane
[[{'concept': 'single-day race'}, {'concept': 'recurring sporting event'}], 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:single-day_race . ?y rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:recurring_sporting_event }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Germany. Could you tell me the answer for that?
(c(Q2912397)|c(Q18608583),P1427,c(Q1048835))
Q183
[[{'concept': 'Q2912397'}, {'concept': 'Q18608583'}], 'P1427', {'concept': 'Q1048835'}]
[[{'concept': 'single-day race'}, {'concept': 'recurring sporting event'}], 'start point', {'concept': 'political territorial entity'}]
[]
SYSTEM
0
(c(Q2912397)|c(Q18608583),P1427,c(Q1048835))
[ANSWER]
[[{'concept': 'Q2912397'}, {'concept': 'Q18608583'}], 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q2912397 . ?y rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q18608583 }
0
[[{'concept': 'single-day race'}, {'concept': 'recurring sporting event'}], 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:single-day_race . ?y rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:recurring_sporting_event }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q6225
P840
Q56061 Q15416 Q838948
USER
Which administrative territories are approximately the same number of television programs or works of art set in as Coventry ?
(c(Q15416)|c(Q838948),P840,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
action find_reverse_tuple_counts
relation P840
type Q56061
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q6225
relation P840
type Q15416
type Q838948
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) ?p WHERE { { ?o property:P840 ?p . ?p rdf:type ontology:Q56061 . ?o rdf:type ontology:Q15416 } UNION { ?o property:P840 ?p . ?p rdf:type ontology:Q56061 . ?o rdf:type ontology:Q838948 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { ?n property:P840 resource:Q6225 . { { ?n rdf:type ontology:Q838948 } UNION { ?n rdf:type ontology:Q15416 } } } } . FILTER ( ?k = ?j ) }
Coventry
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Coventry
relation narrative location
type television program
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) ?p WHERE { { ?o property:narrative_location ?p . ?p rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:television_program } UNION { ?o property:narrative_location ?p . ?p rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:work_of_art } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { ?n property:narrative_location resource:Coventry . { { ?n rdf:type ontology:work_of_art } UNION { ?n rdf:type ontology:television_program } } } } . FILTER ( ?k = ?j ) }
[]
administrative territorial entity television program work of art
Q1085 Q72 Q649
SYSTEM
Prague, Zürich, Moscow
Q3579 Q1715 Q704257 Q7436 Q34804 Q21075005 Q990616 Q1183 Q3711 Q33486 Q1874 Q331990 Q1826473 Q210292 Q28729 Q25286 Q25287 Q128499 Q2280 Q3805 Q501661 Q804569 Q49233 Q1255278 Q42096 Q18808 Q467664 Q23725 Q1050826 Q4093 Q3659 Q16563 Q23337 Q8692 Q2656 Q1289 Q10690 Q585 Q1425428 Q124739 Q3413045 Q79873 Q81788 Q43453 Q1754 Q1022 Q308891 Q2500974 Q7054337 Q101625 Q48320 Q80985 Q12892 Q215646 Q80734 Q7880 Q82858 Q1930 Q1435589 Q597 Q690 Q257536 Q334 Q22889 Q3437 Q75459 Q49272 Q12273 Q365 Q5836 Q12994 Q1635139 Q667268 Q25319 Q33935 Q54140 Q180294 Q8818 Q34739 Q215177 Q27168 Q16555 Q2048321 Q1335 Q594807 Q1891 Q39121 Q9427 Q48274 Q83317 Q12340599 Q262483 Q186237 Q5083 Q23154 Q2567585 Q37776 Q1489 Q209055 Q7094142 Q3561 Q11864 Q83387 Q406 Q462799 Q8673 Q2861 Q11703 Q2868 Q8678 Q490 Q6346 Q495 Q2044 Q48370 Q36036 Q3703 Q208287 Q2141 Q192517 Q54212 Q23436 Q43301 Q490584 Q3141 Q3630 Q1246235 Q17151 Q237 Q6046 Q25416 Q239 Q25410 Q16558 Q16559 Q5212975 Q16554 Q753121 Q16556 Q16557 Q8686 Q994 Q35178 Q113546 Q3130 Q3037 Q52437 Q723329 Q490737 Q1563 Q900 Q131491 Q1741 Q14815 Q1748 Q169492 Q26881 Q13670 Q1911961 Q85 Q128321 Q42462 Q5112 Q1735 Q1737 Q613441 Q729006 Q64123 Q37320 Q25390 Q214178 Q735022 Q45301 Q25395 Q11592 Q78 Q34863 Q72 Q71 Q70 Q178168 Q37100 Q16869 Q2214 Q38022 Q174 Q172 Q270 Q2028 Q37066 Q486439 Q2073798 Q26887 Q184587 Q208472 Q79980 Q82490 Q79985 Q49241 Q49243 Q3766 Q472 Q41604 Q1070 Q3590079 Q837165 Q41819 Q1861 Q2177880 Q5092 Q1011683 Q41329 Q956 Q1555 Q1490 Q1491 Q1492 Q16562 Q6225 Q437 Q124539 Q2118905 Q134672 Q1479 Q387047 Q18419 Q1780 Q1781 Q2302168 Q690052 Q2090 Q2073211 Q1851 Q127856 Q2807 Q18705 Q3820 Q621549 Q49149 Q1353 Q1352 Q676689 Q271411 Q13496 Q27119 Q1524 Q220 Q340 Q125434 Q494728 Q25331 Q25231 Q25230 Q617 Q612 Q430464 Q21855637 Q3305102 Q990168 Q1015727 Q24639 Q34713 Q1218 Q30096 Q915 Q48292 Q319476 Q985531 Q193082 Q162890 Q1020373 Q23070 Q2634 Q863058 Q1659757 Q268873 Q26 Q1726 Q530090 Q34404 Q8717 Q3825 Q159232 Q1757 Q18125 Q5818 Q1867 Q384 Q5813 Q12439 Q27393 Q12191 Q126148 Q202337 Q23556 Q837478 Q184345 Q13362 Q6537 Q6106 Q49111 Q499196 Q495373 Q10313 Q42810 Q49255 Q3640 Q647 Q641 Q727 Q649 Q41621 Q3012 Q2301524 Q852778 Q3483936 Q3358921 Q323813 Q158119 Q79848 Q42735 Q580 Q586 Q43919 Q1449 Q47048 Q1764 Q34932 Q12340625 Q2211 Q41262 Q2704 Q47716 Q1040 Q6441 Q165972 Q100 Q374748 Q485172 Q26793 Q10686 Q4190 Q897848 Q165413 Q350 Q62677 Q1574020 Q3992 Q1781238 Q3110 Q3114 Q743521 Q24826 Q1348 Q630533 Q1156 Q3619316 Q2751 Q41876 Q485186 Q42448 Q41970 Q34647 Q33986 Q1085
(c(Q15416)|c(Q838948),P840,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
action find_reverse_tuple_counts
relation P840
type Q56061
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q6225
relation P840
type Q15416
type Q838948
[ANSWERS] are approximately the same number of television programs or works of art set in as Coventry
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) ?p WHERE { { ?o property:P840 ?p . ?p rdf:type ontology:Q56061 . ?o rdf:type ontology:Q15416 } UNION { ?o property:P840 ?p . ?p rdf:type ontology:Q56061 . ?o rdf:type ontology:Q838948 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { ?n property:P840 resource:Q6225 . { { ?n rdf:type ontology:Q838948 } UNION { ?n rdf:type ontology:Q15416 } } } } . FILTER ( ?k = ?j ) }
Tripoli Hanover Albany Gatchina Albuquerque Serritslev Harwich Puerto Rico Belgrade Hartford Odessa Korean Demilitarized Zone Tversted Yozgat Kozhikode Uppsala Gothenburg Yalta Minsk Amman Schleswig Bala, Ontario Orlando Dragør Miryang Pyongyang Butte Byzantium Greater Los Angeles Area Glasgow N'Djamena Memphis Salt Lake City Bilbao Palermo Grenoble Cardiff Oslo Newcastle upon Tyne Tijuana Farsø Tombstone Giza Plzeň Stockholm Stuttgart special wards of Tokyo Richmond North Buxton, Ontario Marrakesh Kōbe Fes Antwerp Edo Campagna Toulouse Sigmaringen Ottawa Folsom Lisbon Delft Janesville Singapore Bath Perugia Delphi Chandler Gijón Cologne Toledo Bruges Hvalpsund Nevada City Aarhus Tel Aviv Salem Jaffa Valencia Dayton Skagen Randers Houston Varde Montevideo Søborg Bologna Leeds Timbuktu Nashua Mosul Vedersø Deadwood Joensuu Seattle Bristol Dybbøl Besançon Mexico City Torquay Onllwyn Algiers Junagadh Diyarbakır Istanbul Evanston Lagos Rostock United States Virgin Islands Lima Rio de Janeiro Milan Indianapolis Turin Florence Manchester Lviv Bamako Kauniainen Halifax Boulder Barnsley Edinburgh Fresno Flint Melbourne Jakarta Nørresundby Thessaloniki Vatican City Novara Stavanger Brussels Aalborg Fort Worth Austin Damsholte Denver Atacames Phoenix Dallas Shanghai Tbilisi Kuwait City Blackeberg Sydney Kathmandu Murano Ascot Bloomington Havana Kazan Brighton Vienna Weißenfels Copenhagen Neukölln Helsingør Syracuse Thorning Cairo Midland York Adelaide Innsbruck Bregenz Middelfart Chatham Meiringen Cleveland Leeuwarden Nablus Walnut Grove, Minnesota Trabzon Newark Sonoma Basel Oklahoma City Zürich Geneva Bern Mitrovica Auckland Constantinople Pskov St. Louis São Paulo Toronto Warsaw Verona Bismarck Cedar Rapids Welch Davenport Grand Rapids Bingöl Varanasi Lyme Regis Kodiak Lexington Riverside Damascus Sofia Amiens Ahmedabad Hvidovre Hyrylä Kansas City Bangkok Ågerup Baltimore Rødbyhavn Linz Beijing Guatemala City Tokyo La Paz Barcelona El Paso Coventry Ljubljana Whitechapel Purley Exeter Bordeaux Malibu Brooklyn Bratislava Budapest Kjellerup Trebinje Nuremberg Talamone Arkhangelsk Beverly Hills Madrid Bajram Curri Beirut Inglewood Nantucket Delhi Chennai Gravesend Malindi Brindisi Kolding Athens Rome Montreal Port Elizabeth West Covina Odense Svalbard Guernsey Padua Dubai Dearborn Hvilsager Tsamantas Keighley Mbale Vancouver Salzburg Jerusalem Frederiksberg Perm Arles Cumaná Tulkarm Svishtov Xanten Jindabyne Sneek Naples Summerside Gimli Newport Beach Northern Ireland Munich Jerichow New Orleans Seville Libreville Santa Cruz Helsinki Manchester Córdoba Taipei Skopje Canary Islands Detroit Herning Nantes Tangier Nauplion Atlanta Sabinov Viña del Mar Ferrara Vicenza Portland Cambridge Costa Mesa Visalia Donostia/San Sebastián Le Havre Tampa Ankara Rennes Venice Amsterdam Moscow Haifa Ulm Stege Whitby Sils Maria Overschild Jamestown Ramallah Southampton Olympia Łódź Bonn Salem Genoa Oulu Reykjavík Brisbane Vejlby Malmö Nottingham Pescara Charleston Karlsruhe Montpellier Fort Lauderdale Boston Jenin Ann Arbor Bergen Belfast Passau Brande Baikonur Cambridge Karakorum The Hamptons Liège Stureby San Salvador Canberra Scarborough Liverpool Kolkata Tire Mumbai Grenå Siena Reims Key West Sheffield Pyatigorsk Johannesburg Valparaíso Prague
Prague, Zürich and Moscow are approximately the same number of television programs or works of art set in as Coventry
Prague Zürich Moscow
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Coventry
relation narrative location
type television program
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) ?p WHERE { { ?o property:narrative_location ?p . ?p rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:television_program } UNION { ?o property:narrative_location ?p . ?p rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:work_of_art } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { ?n property:narrative_location resource:Coventry . { { ?n rdf:type ontology:work_of_art } UNION { ?n rdf:type ontology:television_program } } } } . FILTER ( ?k = ?j ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q472
P840
Q56061 Q15416 Q838948
USER
And how about Sofia?
(c(Q15416)|c(Q838948),P840,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
action find_reverse_tuple_counts
relation P840
type Q56061
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q472
relation P840
type Q15416
type Q838948
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?u = ?t ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { ?z property:P840 resource:Q472 . { VALUES ( ?o ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } . ?z rdf:type ?o } } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) ?e WHERE { VALUES ( ?q ) { ( ontology:Q838948 ) ( ontology:Q15416 ) } . ?h rdf:type ?q } GROUP BY ?e } }
Sofia
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Sofia
relation narrative location
type television program
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?u = ?t ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { ?z property:narrative_location resource:Sofia . { VALUES ( ?o ) { ( ontology:television_program ) ( ontology:work_of_art ) } . ?z rdf:type ?o } } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) ?e WHERE { VALUES ( ?q ) { ( ontology:work_of_art ) ( ontology:television_program ) } . ?h rdf:type ?q } GROUP BY ?e } }
[]
administrative territorial entity television program work of art
Q1085 Q72 Q649
SYSTEM
Prague, Zürich, Moscow
Q3579 Q1715 Q704257 Q7436 Q34804 Q21075005 Q990616 Q1183 Q3711 Q33486 Q1874 Q331990 Q1826473 Q210292 Q28729 Q25286 Q25287 Q128499 Q2280 Q3805 Q501661 Q804569 Q49233 Q1255278 Q42096 Q18808 Q467664 Q23725 Q1050826 Q4093 Q3659 Q16563 Q23337 Q8692 Q2656 Q1289 Q10690 Q585 Q1425428 Q124739 Q3413045 Q79873 Q81788 Q43453 Q1754 Q1022 Q308891 Q2500974 Q7054337 Q101625 Q48320 Q80985 Q12892 Q215646 Q80734 Q7880 Q82858 Q1930 Q1435589 Q597 Q690 Q257536 Q334 Q22889 Q3437 Q75459 Q49272 Q12273 Q365 Q5836 Q12994 Q1635139 Q667268 Q25319 Q33935 Q54140 Q180294 Q8818 Q34739 Q215177 Q27168 Q16555 Q2048321 Q1335 Q594807 Q1891 Q39121 Q9427 Q48274 Q83317 Q12340599 Q262483 Q186237 Q5083 Q23154 Q2567585 Q37776 Q1489 Q209055 Q7094142 Q3561 Q11864 Q83387 Q406 Q462799 Q8673 Q2861 Q11703 Q2868 Q8678 Q490 Q6346 Q495 Q2044 Q48370 Q36036 Q3703 Q208287 Q2141 Q192517 Q54212 Q23436 Q43301 Q490584 Q3141 Q3630 Q1246235 Q17151 Q237 Q6046 Q25416 Q239 Q25410 Q16558 Q16559 Q5212975 Q16554 Q753121 Q16556 Q16557 Q8686 Q994 Q35178 Q113546 Q3130 Q3037 Q52437 Q723329 Q490737 Q1563 Q900 Q131491 Q1741 Q14815 Q1748 Q169492 Q26881 Q13670 Q1911961 Q85 Q128321 Q42462 Q5112 Q1735 Q1737 Q613441 Q729006 Q64123 Q37320 Q25390 Q214178 Q735022 Q45301 Q25395 Q11592 Q78 Q34863 Q72 Q71 Q70 Q178168 Q37100 Q16869 Q2214 Q38022 Q174 Q172 Q270 Q2028 Q37066 Q486439 Q2073798 Q26887 Q184587 Q208472 Q79980 Q82490 Q79985 Q49241 Q49243 Q3766 Q472 Q41604 Q1070 Q3590079 Q837165 Q41819 Q1861 Q2177880 Q5092 Q1011683 Q41329 Q956 Q1555 Q1490 Q1491 Q1492 Q16562 Q6225 Q437 Q124539 Q2118905 Q134672 Q1479 Q387047 Q18419 Q1780 Q1781 Q2302168 Q690052 Q2090 Q2073211 Q1851 Q127856 Q2807 Q18705 Q3820 Q621549 Q49149 Q1353 Q1352 Q676689 Q271411 Q13496 Q27119 Q1524 Q220 Q340 Q125434 Q494728 Q25331 Q25231 Q25230 Q617 Q612 Q430464 Q21855637 Q3305102 Q990168 Q1015727 Q24639 Q34713 Q1218 Q30096 Q915 Q48292 Q319476 Q985531 Q193082 Q162890 Q1020373 Q23070 Q2634 Q863058 Q1659757 Q268873 Q26 Q1726 Q530090 Q34404 Q8717 Q3825 Q159232 Q1757 Q18125 Q5818 Q1867 Q384 Q5813 Q12439 Q27393 Q12191 Q126148 Q202337 Q23556 Q837478 Q184345 Q13362 Q6537 Q6106 Q49111 Q499196 Q495373 Q10313 Q42810 Q49255 Q3640 Q647 Q641 Q727 Q649 Q41621 Q3012 Q2301524 Q852778 Q3483936 Q3358921 Q323813 Q158119 Q79848 Q42735 Q580 Q586 Q43919 Q1449 Q47048 Q1764 Q34932 Q12340625 Q2211 Q41262 Q2704 Q47716 Q1040 Q6441 Q165972 Q100 Q374748 Q485172 Q26793 Q10686 Q4190 Q897848 Q165413 Q350 Q62677 Q1574020 Q3992 Q1781238 Q3110 Q3114 Q743521 Q24826 Q1348 Q630533 Q1156 Q3619316 Q2751 Q41876 Q485186 Q42448 Q41970 Q34647 Q33986 Q1085
(c(Q15416)|c(Q838948),P840,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
action find_reverse_tuple_counts
relation P840
type Q56061
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q472
relation P840
type Q15416
type Q838948
[ANSWERS]
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?u = ?t ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { ?z property:P840 resource:Q472 . { VALUES ( ?o ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } . ?z rdf:type ?o } } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) ?e WHERE { VALUES ( ?q ) { ( ontology:Q838948 ) ( ontology:Q15416 ) } . ?h rdf:type ?q } GROUP BY ?e } }
Tripoli Hanover Albany Gatchina Albuquerque Serritslev Harwich Puerto Rico Belgrade Hartford Odessa Korean Demilitarized Zone Tversted Yozgat Kozhikode Uppsala Gothenburg Yalta Minsk Amman Schleswig Bala, Ontario Orlando Dragør Miryang Pyongyang Butte Byzantium Greater Los Angeles Area Glasgow N'Djamena Memphis Salt Lake City Bilbao Palermo Grenoble Cardiff Oslo Newcastle upon Tyne Tijuana Farsø Tombstone Giza Plzeň Stockholm Stuttgart special wards of Tokyo Richmond North Buxton, Ontario Marrakesh Kōbe Fes Antwerp Edo Campagna Toulouse Sigmaringen Ottawa Folsom Lisbon Delft Janesville Singapore Bath Perugia Delphi Chandler Gijón Cologne Toledo Bruges Hvalpsund Nevada City Aarhus Tel Aviv Salem Jaffa Valencia Dayton Skagen Randers Houston Varde Montevideo Søborg Bologna Leeds Timbuktu Nashua Mosul Vedersø Deadwood Joensuu Seattle Bristol Dybbøl Besançon Mexico City Torquay Onllwyn Algiers Junagadh Diyarbakır Istanbul Evanston Lagos Rostock United States Virgin Islands Lima Rio de Janeiro Milan Indianapolis Turin Florence Manchester Lviv Bamako Kauniainen Halifax Boulder Barnsley Edinburgh Fresno Flint Melbourne Jakarta Nørresundby Thessaloniki Vatican City Novara Stavanger Brussels Aalborg Fort Worth Austin Damsholte Denver Atacames Phoenix Dallas Shanghai Tbilisi Kuwait City Blackeberg Sydney Kathmandu Murano Ascot Bloomington Havana Kazan Brighton Vienna Weißenfels Copenhagen Neukölln Helsingør Syracuse Thorning Cairo Midland York Adelaide Innsbruck Bregenz Middelfart Chatham Meiringen Cleveland Leeuwarden Nablus Walnut Grove, Minnesota Trabzon Newark Sonoma Basel Oklahoma City Zürich Geneva Bern Mitrovica Auckland Constantinople Pskov St. Louis São Paulo Toronto Warsaw Verona Bismarck Cedar Rapids Welch Davenport Grand Rapids Bingöl Varanasi Lyme Regis Kodiak Lexington Riverside Damascus Sofia Amiens Ahmedabad Hvidovre Hyrylä Kansas City Bangkok Ågerup Baltimore Rødbyhavn Linz Beijing Guatemala City Tokyo La Paz Barcelona El Paso Coventry Ljubljana Whitechapel Purley Exeter Bordeaux Malibu Brooklyn Bratislava Budapest Kjellerup Trebinje Nuremberg Talamone Arkhangelsk Beverly Hills Madrid Bajram Curri Beirut Inglewood Nantucket Delhi Chennai Gravesend Malindi Brindisi Kolding Athens Rome Montreal Port Elizabeth West Covina Odense Svalbard Guernsey Padua Dubai Dearborn Hvilsager Tsamantas Keighley Mbale Vancouver Salzburg Jerusalem Frederiksberg Perm Arles Cumaná Tulkarm Svishtov Xanten Jindabyne Sneek Naples Summerside Gimli Newport Beach Northern Ireland Munich Jerichow New Orleans Seville Libreville Santa Cruz Helsinki Manchester Córdoba Taipei Skopje Canary Islands Detroit Herning Nantes Tangier Nauplion Atlanta Sabinov Viña del Mar Ferrara Vicenza Portland Cambridge Costa Mesa Visalia Donostia/San Sebastián Le Havre Tampa Ankara Rennes Venice Amsterdam Moscow Haifa Ulm Stege Whitby Sils Maria Overschild Jamestown Ramallah Southampton Olympia Łódź Bonn Salem Genoa Oulu Reykjavík Brisbane Vejlby Malmö Nottingham Pescara Charleston Karlsruhe Montpellier Fort Lauderdale Boston Jenin Ann Arbor Bergen Belfast Passau Brande Baikonur Cambridge Karakorum The Hamptons Liège Stureby San Salvador Canberra Scarborough Liverpool Kolkata Tire Mumbai Grenå Siena Reims Key West Sheffield Pyatigorsk Johannesburg Valparaíso Prague
Prague Zürich Moscow
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Sofia
relation narrative location
type television program
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?u = ?t ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { ?z property:narrative_location resource:Sofia . { VALUES ( ?o ) { ( ontology:television_program ) ( ontology:work_of_art ) } . ?z rdf:type ?o } } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) ?e WHERE { VALUES ( ?q ) { ( ontology:work_of_art ) ( ontology:television_program ) } . ?h rdf:type ?q } GROUP BY ?e } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q15174
P190
Q486972 Q515 Q1048835
USER
How many political territories are partner town of around the same number of human settlements or cities as Shenzhen ?
(c(Q1048835),P190,c(Q486972)|c(Q515))
action count
action approx
action union
action find_tuple_counts
relation P190
type Q1048835
type Q486972
action find_tuple_counts
relation P190
type Q1048835
type Q515
action count
action filter_multi_types
action find
entity Q15174
relation P190
type Q486972
type Q515
[{'concept': 'Q1048835'}, 'P190', [{'concept': 'Q486972'}, {'concept': 'Q515'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) ?u WHERE { { ?u property:P190 ?c . ?u rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q486972 } UNION { ?u property:P190 ?c . ?c rdf:type ontology:Q515 . ?u rdf:type ontology:Q1048835 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { resource:Q15174 property:P190 ?b . { { ?b rdf:type ontology:Q486972 } UNION { ?b rdf:type ontology:Q515 } } } } . FILTER ( ?q = ?a ) }
Shenzhen
action count
action approx
action union
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
action find_tuple_counts
relation sister city
type political territorial entity
type city
action count
action filter_multi_types
action find
entity Shenzhen
relation sister city
type human settlement
type city
[{'concept': 'political territorial entity'}, 'sister city', [{'concept': 'human settlement'}, {'concept': 'city'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) ?u WHERE { { ?u property:sister_city ?c . ?u rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:human_settlement } UNION { ?u property:sister_city ?c . ?c rdf:type ontology:city . ?u rdf:type ontology:political_territorial_entity } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { resource:Shenzhen property:sister_city ?b . { { ?b rdf:type ontology:human_settlement } UNION { ?b rdf:type ontology:city } } } } . FILTER ( ?q = ?a ) }
[]
human settlement city political territorial entity
SYSTEM
11
Q842713 Q168376 Q4970 Q15174 Q42956 Q170247 Q92161 Q11720 Q353618 Q5826 Q192387
(c(Q1048835),P190,c(Q486972)|c(Q515))
action count
action approx
action union
action find_tuple_counts
relation P190
type Q1048835
type Q486972
action find_tuple_counts
relation P190
type Q1048835
type Q515
action count
action filter_multi_types
action find
entity Q15174
relation P190
type Q486972
type Q515
[ANSWER]
[{'concept': 'Q1048835'}, 'P190', [{'concept': 'Q486972'}, {'concept': 'Q515'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) ?u WHERE { { ?u property:P190 ?c . ?u rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q486972 } UNION { ?u property:P190 ?c . ?c rdf:type ontology:Q515 . ?u rdf:type ontology:Q1048835 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { resource:Q15174 property:P190 ?b . { { ?b rdf:type ontology:Q486972 } UNION { ?b rdf:type ontology:Q515 } } } } . FILTER ( ?q = ?a ) }
Itajaí Vitória Hangzhou Shenzhen Harbin Jinan Changchun Shenyang Adeje Xi'an Londrina
11
action count
action approx
action union
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
action find_tuple_counts
relation sister city
type political territorial entity
type city
action count
action filter_multi_types
action find
entity Shenzhen
relation sister city
type human settlement
type city
[{'concept': 'political territorial entity'}, 'sister city', [{'concept': 'human settlement'}, {'concept': 'city'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) ?u WHERE { { ?u property:sister_city ?c . ?u rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:human_settlement } UNION { ?u property:sister_city ?c . ?c rdf:type ontology:city . ?u rdf:type ontology:political_territorial_entity } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { resource:Shenzhen property:sister_city ?b . { { ?b rdf:type ontology:human_settlement } UNION { ?b rdf:type ontology:city } } } } . FILTER ( ?q = ?a ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q172157
P559
Q56061 Q728937 Q34442
USER
How many administrative territories are the terminus for more number of railroad lines or roads than Winchester ?
(c(Q728937)|c(Q34442),P559,c(Q56061))
action count
action greater
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
action find_reverse_tuple_counts
relation P559
type Q56061
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q172157
relation P559
type Q728937
type Q34442
[[{'concept': 'Q728937'}, {'concept': 'Q34442'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { { VALUES ( ?h ) { ( ontology:Q34442 ) ( ontology:Q728937 ) } . ?p rdf:type ?h } . ?p property:P559 resource:Q172157 } } . FILTER ( ?g > ?b ) . { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?g ) WHERE { { ?w property:P559 ?j . ?j rdf:type ontology:Q56061 . ?w rdf:type ontology:Q728937 } UNION { ?w property:P559 ?j . ?j rdf:type ontology:Q56061 . ?w rdf:type ontology:Q34442 } } GROUP BY ?j } }
Winchester
action count
action greater
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type road
action count
action filter_multi_types
action find_reverse
entity Winchester
relation terminus
type railroad line
type road
[[{'concept': 'railroad line'}, {'concept': 'road'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { { VALUES ( ?h ) { ( ontology:road ) ( ontology:railroad_line ) } . ?p rdf:type ?h } . ?p property:terminus resource:Winchester } } . FILTER ( ?g > ?b ) . { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?g ) WHERE { { ?w property:terminus ?j . ?j rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:railroad_line } UNION { ?w property:terminus ?j . ?j rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:road } } GROUP BY ?j } }
[]
administrative territorial entity railroad line road
SYSTEM
5
Q3812238 Q2814 Q5032535 Q12191 Q1729
(c(Q728937)|c(Q34442),P559,c(Q56061))
action count
action greater
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
action find_reverse_tuple_counts
relation P559
type Q56061
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q172157
relation P559
type Q728937
type Q34442
[ANSWER]
[[{'concept': 'Q728937'}, {'concept': 'Q34442'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { { VALUES ( ?h ) { ( ontology:Q34442 ) ( ontology:Q728937 ) } . ?p rdf:type ?h } . ?p property:P559 resource:Q172157 } } . FILTER ( ?g > ?b ) . { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?g ) WHERE { { ?w property:P559 ?j . ?j rdf:type ontology:Q56061 . ?w rdf:type ontology:Q728937 } UNION { ?w property:P559 ?j . ?j rdf:type ontology:Q56061 . ?w rdf:type ontology:Q34442 } } GROUP BY ?j } }
Bronygarth Halle (Saale) Cann River Nantes Erfurt
5
action count
action greater
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type road
action count
action filter_multi_types
action find_reverse
entity Winchester
relation terminus
type railroad line
type road
[[{'concept': 'railroad line'}, {'concept': 'road'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { { VALUES ( ?h ) { ( ontology:road ) ( ontology:railroad_line ) } . ?p rdf:type ?h } . ?p property:terminus resource:Winchester } } . FILTER ( ?g > ?b ) . { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?g ) WHERE { { ?w property:terminus ?j . ?j rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:railroad_line } UNION { ?w property:terminus ?j . ?j rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:road } } GROUP BY ?j } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q369947
P559
Q56061 Q728937 Q34442
USER
And also tell me about El Cajon?
(c(Q728937)|c(Q34442),P559,c(Q56061))
action count
action greater
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
action find_reverse_tuple_counts
relation P559
type Q56061
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q369947
relation P559
type Q728937
type Q34442
[[{'concept': 'Q728937'}, {'concept': 'Q34442'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { FILTER ( ?h > ?f ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { { { ?t rdf:type ontology:Q728937 } UNION { ?t rdf:type ontology:Q34442 } } . ?t property:P559 resource:Q369947 } } . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?h ) WHERE { { ?k property:P559 ?n . ?n rdf:type ontology:Q56061 . ?k rdf:type ontology:Q728937 } UNION { ?k property:P559 ?n . ?n rdf:type ontology:Q56061 . ?k rdf:type ontology:Q34442 } } GROUP BY ?n } }
El Cajon
action count
action greater
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type road
action count
action filter_multi_types
action find_reverse
entity El Cajon
relation terminus
type railroad line
type road
[[{'concept': 'railroad line'}, {'concept': 'road'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { FILTER ( ?h > ?f ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { { { ?t rdf:type ontology:railroad_line } UNION { ?t rdf:type ontology:road } } . ?t property:terminus resource:El_Cajon } } . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?h ) WHERE { { ?k property:terminus ?n . ?n rdf:type ontology:administrative_territorial_entity . ?k rdf:type ontology:railroad_line } UNION { ?k property:terminus ?n . ?n rdf:type ontology:administrative_territorial_entity . ?k rdf:type ontology:road } } GROUP BY ?n } }
[]
administrative territorial entity railroad line road
SYSTEM
5
Q3812238 Q2814 Q5032535 Q12191 Q1729
(c(Q728937)|c(Q34442),P559,c(Q56061))
action count
action greater
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
action find_reverse_tuple_counts
relation P559
type Q56061
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q369947
relation P559
type Q728937
type Q34442
[ANSWER]
[[{'concept': 'Q728937'}, {'concept': 'Q34442'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { FILTER ( ?h > ?f ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { { { ?t rdf:type ontology:Q728937 } UNION { ?t rdf:type ontology:Q34442 } } . ?t property:P559 resource:Q369947 } } . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?h ) WHERE { { ?k property:P559 ?n . ?n rdf:type ontology:Q56061 . ?k rdf:type ontology:Q728937 } UNION { ?k property:P559 ?n . ?n rdf:type ontology:Q56061 . ?k rdf:type ontology:Q34442 } } GROUP BY ?n } }
Bronygarth Halle (Saale) Cann River Nantes Erfurt
5
action count
action greater
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type road
action count
action filter_multi_types
action find_reverse
entity El Cajon
relation terminus
type railroad line
type road
[[{'concept': 'railroad line'}, {'concept': 'road'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { FILTER ( ?h > ?f ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { { { ?t rdf:type ontology:railroad_line } UNION { ?t rdf:type ontology:road } } . ?t property:terminus resource:El_Cajon } } . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?h ) WHERE { { ?k property:terminus ?n . ?n rdf:type ontology:administrative_territorial_entity . ?k rdf:type ontology:railroad_line } UNION { ?k property:terminus ?n . ?n rdf:type ontology:administrative_territorial_entity . ?k rdf:type ontology:road } } GROUP BY ?n } }
[]