Simple Question (Direct)
Simple Question
Q1449167
P937
Q56061
USER
Which is the work location of Franz Steininger ?
(Q1449167,P937,c(Q56061))
action filter_type
action find
entity Q1449167
relation P937
type Q56061
['Q1449167', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q1449167 property:P937 ?n . ?n rdf:type ontology:Q56061 }
Franz Steininger
action filter_type
action find
entity Franz Steininger
relation work location
type administrative territorial entity
['Franz Steininger', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Franz_Steininger property:work_location ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1741
SYSTEM
Vienna
Q1741
(Q1449167,P937,c(Q56061))
action filter_type
action find
entity Q1449167
relation P937
type Q56061
[ANSWER] is the work location of Franz Steininger
['Q1449167', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q1449167 property:P937 ?n . ?n rdf:type ontology:Q56061 }
Vienna
Vienna is the work location of Franz Steininger
Vienna
action filter_type
action find
entity Franz Steininger
relation work location
type administrative territorial entity
['Franz Steininger', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Franz_Steininger property:work_location ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1449167
P102
Q7210356
USER
Which political organization is Franz Steininger a member of ?
(Q1449167,P102,c(Q7210356))
action filter_type
action find
entity Q1449167
relation P102
type Q7210356
['Q1449167', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?u WHERE { resource:Q1449167 property:P102 ?u . ?u rdf:type ontology:Q7210356 }
Franz Steininger
action filter_type
action find
entity Franz Steininger
relation member of political party
type political organization
['Franz Steininger', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?u WHERE { resource:Franz_Steininger property:member_of_political_party ?u . ?u rdf:type ontology:political_organization }
[]
political organization
Q179111
SYSTEM
Social Democratic Party of Austria
Q179111
(Q1449167,P102,c(Q7210356))
action filter_type
action find
entity Q1449167
relation P102
type Q7210356
Party [ANSWER] is Franz Steininger a member of
['Q1449167', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?u WHERE { resource:Q1449167 property:P102 ?u . ?u rdf:type ontology:Q7210356 }
Social Democratic Party of Austria
Party Social Democratic Party of Austria is Franz Steininger a member of
Social Democratic Party of Austria
action filter_type
action find
entity Franz Steininger
relation member of political party
type political organization
['Franz Steininger', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?u WHERE { resource:Franz_Steininger property:member_of_political_party ?u . ?u rdf:type ontology:political_organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q18344198
Q7210356
USER
And what about Gerardo Escaroz Soler?
(Q18344198,P102,c(Q7210356))
action filter_type
action find
entity Q18344198
relation P102
type Q7210356
['Q18344198', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q7210356 . resource:Q18344198 property:P102 ?x }
Gerardo Escaroz Soler
action filter_type
action find
entity Gerardo Escaroz Soler
relation member of political party
type political organization
['Gerardo Escaroz Soler', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:political_organization . resource:Gerardo_Escaroz_Soler property:member_of_political_party ?x }
[]
political organization
Q851087
SYSTEM
National Action Party
Q851087
(Q18344198,P102,c(Q7210356))
action filter_type
action find
entity Q18344198
relation P102
type Q7210356
[ANSWER]
['Q18344198', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q7210356 . resource:Q18344198 property:P102 ?x }
National Action Party
National Action Party
action filter_type
action find
entity Gerardo Escaroz Soler
relation member of political party
type political organization
['Gerardo Escaroz Soler', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:political_organization . resource:Gerardo_Escaroz_Soler property:member_of_political_party ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18344198
P27
Q15617994
USER
Which administrative territory is that person an inhabitant of ?
(Q851087,P27,c(Q15617994))
action filter_type
action find
entity Q18344198
relation P27
type Q15617994
['Q851087', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q18344198 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
Gerardo Escaroz Soler
action filter_type
action find
entity Gerardo Escaroz Soler
relation country of citizenship
type designation for an administrative territorial entity
['National Action Party', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Gerardo_Escaroz_Soler property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q96
SYSTEM
Mexico
Q96
(Q851087,P27,c(Q15617994))
action filter_type
action find
entity Q18344198
relation P27
type Q15617994
[ANSWER] is that person an inhabitant of
['Q851087', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q18344198 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
Mexico
Mexico is that person an inhabitant of
Mexico
action filter_type
action find
entity Gerardo Escaroz Soler
relation country of citizenship
type designation for an administrative territorial entity
['National Action Party', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Gerardo_Escaroz_Soler property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q96 Q24789893
P1532
Q502895
USER
Does Eero Olavi Bister play for that administrative territory ?
(Q24789893,P1532,Q96)
action is_in
entity Q24789893
action find
entity Q96
relation P1532
['Q24789893', 'P1532', 'Q96']
ASK WHERE { resource:Q96 property:P1532 resource:Q24789893 }
Mexico Eero Olavi Bister
action is_in
entity Eero Olavi Bister
action find
entity Mexico
relation country for sport
['Eero Olavi Bister', 'country for sport', 'Mexico']
ASK WHERE { resource:Mexico property:country_for_sport resource:Eero_Olavi_Bister }
[]
common name
SYSTEM
NO
(Q24789893,P1532,Q96)
action is_in
entity Q24789893
action find
entity Q96
relation P1532
[ANSWER]
['Q24789893', 'P1532', 'Q96']
ASK WHERE { resource:Q96 property:P1532 resource:Q24789893 }
No
action is_in
entity Eero Olavi Bister
action find
entity Mexico
relation country for sport
['Eero Olavi Bister', 'country for sport', 'Mexico']
ASK WHERE { resource:Mexico property:country_for_sport resource:Eero_Olavi_Bister }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q3403140
P180
Q56061 Q1792379 Q3305213
USER
Which administrative territories are expressed in greater number of art genres or paintings than Llanfair-ar-y-bryn ?
(c(Q1792379)|c(Q3305213),P180,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q56061
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q56061
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q3403140
relation P180
type Q1792379
type Q3305213
[[{'concept': 'Q1792379'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) ?z WHERE { ?w rdf:type ?t . VALUES ( ?t ) { ( ontology:Q1792379 ) ( ontology:Q3305213 ) } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { ?v property:P180 resource:Q3403140 . { { ?v rdf:type ontology:Q1792379 } UNION { ?v rdf:type ontology:Q3305213 } } } } . FILTER ( ?j > ?d ) }
Llanfair-ar-y-bryn
action greater
action union
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type art genre
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type painting
action count
action filter_multi_types
action find_reverse
entity Llanfair-ar-y-bryn
relation depicts
type art genre
type painting
[[{'concept': 'art genre'}, {'concept': 'painting'}], 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) ?z WHERE { ?w rdf:type ?t . VALUES ( ?t ) { ( ontology:art_genre ) ( ontology:painting ) } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { ?v property:depicts resource:Llanfair-ar-y-bryn . { { ?v rdf:type ontology:art_genre } UNION { ?v rdf:type ontology:painting } } } } . FILTER ( ?j > ?d ) }
[]
administrative territorial entity art genre painting
Q90 Q1524 Q220
SYSTEM
Paris, Athens, Rome
Q33959 Q15682 Q329967 Q62289 Q178835 Q12892 Q1247496 Q174054 Q1524 Q3561 Q139564 Q1012797 Q515 Q3834 Q748777 Q85 Q2100774 Q4914513 Q101254 Q220 Q634054 Q49146 Q54264 Q8717 Q641 Q180141 Q12191 Q6441 Q90 Q36600
(c(Q1792379)|c(Q3305213),P180,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q56061
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q56061
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q3403140
relation P180
type Q1792379
type Q3305213
[ANSWERS] are expressed in greater number of art genres or paintings than Llanfair-ar-y-bryn
[[{'concept': 'Q1792379'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) ?z WHERE { ?w rdf:type ?t . VALUES ( ?t ) { ( ontology:Q1792379 ) ( ontology:Q3305213 ) } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { ?v property:P180 resource:Q3403140 . { { ?v rdf:type ontology:Q1792379 } UNION { ?v rdf:type ontology:Q3305213 } } } } . FILTER ( ?j > ?d ) }
Nice Cádiz Paestum Rockaway Beach Baalbek Antwerp Rievaulx Abbey Isola Bella Athens Algiers Atlantic City Ostia Antica city Konstanz Tintagel Cairo Point Judith, Rhode Island Binsey, Oxfordshire Newport Rome Conwy New London Newport Seville Venice Sodom and Gomorrah Nantes Montpellier Paris The Hague
Paris, Athens and Rome are expressed in greater number of art genres or paintings than Llanfair-ar-y-bryn
Paris Athens Rome
action greater
action union
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type art genre
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type painting
action count
action filter_multi_types
action find_reverse
entity Llanfair-ar-y-bryn
relation depicts
type art genre
type painting
[[{'concept': 'art genre'}, {'concept': 'painting'}], 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) ?z WHERE { ?w rdf:type ?t . VALUES ( ?t ) { ( ontology:art_genre ) ( ontology:painting ) } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { ?v property:depicts resource:Llanfair-ar-y-bryn . { { ?v rdf:type ontology:art_genre } UNION { ?v rdf:type ontology:painting } } } } . FILTER ( ?j > ?d ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q3561
P180
Q56061 Q1792379 Q3305213
USER
And what about Algiers?
(c(Q1792379)|c(Q3305213),P180,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q56061
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q56061
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q3561
relation P180
type Q1792379
type Q3305213
[[{'concept': 'Q1792379'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) ?h WHERE { ?o rdf:type ?t . VALUES ( ?t ) { ( ontology:Q1792379 ) ( ontology:Q3305213 ) } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { { ?e rdf:type ontology:Q1792379 } UNION { ?e rdf:type ontology:Q3305213 } } . ?e property:P180 resource:Q3561 } } . FILTER ( ?w > ?s ) }
Algiers
action greater
action union
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type art genre
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type painting
action count
action filter_multi_types
action find_reverse
entity Algiers
relation depicts
type art genre
type painting
[[{'concept': 'art genre'}, {'concept': 'painting'}], 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) ?h WHERE { ?o rdf:type ?t . VALUES ( ?t ) { ( ontology:art_genre ) ( ontology:painting ) } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { { ?e rdf:type ontology:art_genre } UNION { ?e rdf:type ontology:painting } } . ?e property:depicts resource:Algiers } } . FILTER ( ?w > ?s ) }
[]
administrative territorial entity art genre painting
Q90 Q220 Q641
SYSTEM
Paris, Rome, Venice
Q329967 Q139564 Q515 Q85 Q220 Q54264 Q641 Q12191 Q90 Q36600
(c(Q1792379)|c(Q3305213),P180,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q56061
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q56061
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q3561
relation P180
type Q1792379
type Q3305213
[ANSWERS]
[[{'concept': 'Q1792379'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) ?h WHERE { ?o rdf:type ?t . VALUES ( ?t ) { ( ontology:Q1792379 ) ( ontology:Q3305213 ) } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { { ?e rdf:type ontology:Q1792379 } UNION { ?e rdf:type ontology:Q3305213 } } . ?e property:P180 resource:Q3561 } } . FILTER ( ?w > ?s ) }
Paestum Atlantic City city Cairo Rome Newport Venice Nantes Paris The Hague
Paris Rome Venice
action greater
action union
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type art genre
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type painting
action count
action filter_multi_types
action find_reverse
entity Algiers
relation depicts
type art genre
type painting
[[{'concept': 'art genre'}, {'concept': 'painting'}], 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) ?h WHERE { ?o rdf:type ?t . VALUES ( ?t ) { ( ontology:art_genre ) ( ontology:painting ) } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { { ?e rdf:type ontology:art_genre } UNION { ?e rdf:type ontology:painting } } . ?e property:depicts resource:Algiers } } . FILTER ( ?w > ?s ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2173102 Q18344198
P19
Q486972
USER
Which human settlements were Gerardo Escaroz Soler or Rudolf Jürgen Bartsch born ?
OR((Q18344198,P19,c(Q486972)), (Q2173102,P19,c(Q486972)))
action filter_type
action union
action find
entity Q18344198
relation P19
action find
entity Q2173102
relation P19
type Q486972
{'OR': [['Q18344198', 'P19', {'concept': 'Q486972'}], ['Q2173102', 'P19', {'concept': 'Q486972'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q18344198 property:P19 ?h } UNION { resource:Q2173102 property:P19 ?h } } . ?h rdf:type ontology:Q486972 }
Rudolf Jürgen Bartsch Gerardo Escaroz Soler
action filter_type
action union
action find
entity Gerardo Escaroz Soler
relation place of birth
action find
entity Rudolf Jürgen Bartsch
relation place of birth
type human settlement
{'OR': [['Gerardo Escaroz Soler', 'place of birth', {'concept': 'human settlement'}], ['Rudolf Jürgen Bartsch', 'place of birth', {'concept': 'human settlement'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Gerardo_Escaroz_Soler property:place_of_birth ?h } UNION { resource:Rudolf_Jürgen_Bartsch property:place_of_birth ?h } } . ?h rdf:type ontology:human_settlement }
[]
human settlement
Q165204 Q62868
SYSTEM
Mérida, Koszalin
Q165204 Q62868
OR((Q18344198,P19,c(Q486972)), (Q2173102,P19,c(Q486972)))
action filter_type
action union
action find
entity Q18344198
relation P19
action find
entity Q2173102
relation P19
type Q486972
[ANSWERS] were Gerardo Escaroz Soler or Rudolf Jürgen Bartsch born
{'OR': [['Q18344198', 'P19', {'concept': 'Q486972'}], ['Q2173102', 'P19', {'concept': 'Q486972'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q18344198 property:P19 ?h } UNION { resource:Q2173102 property:P19 ?h } } . ?h rdf:type ontology:Q486972 }
Mérida Koszalin
Mérida and Koszalin were Gerardo Escaroz Soler or Rudolf Jürgen Bartsch born
Mérida Koszalin
action filter_type
action union
action find
entity Gerardo Escaroz Soler
relation place of birth
action find
entity Rudolf Jürgen Bartsch
relation place of birth
type human settlement
{'OR': [['Gerardo Escaroz Soler', 'place of birth', {'concept': 'human settlement'}], ['Rudolf Jürgen Bartsch', 'place of birth', {'concept': 'human settlement'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Gerardo_Escaroz_Soler property:place_of_birth ?h } UNION { resource:Rudolf_Jürgen_Bartsch property:place_of_birth ?h } } . ?h rdf:type ontology:human_settlement }
[]
Clarification
Simple Question|Single Entity|Indirect
Q165204
P190
Q13220204
USER
Which administrative country subdivisions are the sister cities of that human settlement ?
(Q165204,P190,c(Q13220204))
action filter_type
action find
entity Q165204
relation P190
type Q13220204
['Q165204', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q13220204 . resource:Q165204 property:P190 ?g }
Mérida
action filter_type
action find
entity Mérida
relation sister city
type second-level administrative country subdivision
['Mérida', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:second-level_administrative_country_subdivision . resource:Mérida property:sister_city ?g }
[]
second-level administrative country subdivision
Clarification for simple ques.
Q165204
SYSTEM
Did you mean Mérida ?
Q165204 Q62868
(Q165204,P190,c(Q13220204)) (Q62868,P190,c(Q13220204))
[ANSWER]
['Q165204', 'P190', {'concept': 'Q13220204'}] ['Q62868', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q13220204 . resource:Q165204 property:P190 ?g }
Mérida Koszalin
Did you mean Mérida ?
Mérida
['Mérida', 'sister city', {'concept': 'second-level administrative country subdivision'}] ['Koszalin', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:second-level_administrative_country_subdivision . resource:Mérida property:sister_city ?g }
[]
Simple Question (Coreferenced)
USER
Yes
(Q165204,P190,c(Q13220204))
['Q165204', 'P190', {'concept': 'Q13220204'}]
['Mérida', 'sister city', {'concept': 'second-level administrative country subdivision'}]
[]
Q951897 Q51111 Q1442335
SYSTEM
Chiquinquirá, Pereira, Manzanares
Q951897 Q51111 Q1442335
(Q165204,P190,c(Q13220204))
action filter_type
action find
entity Q165204
relation P190
type Q13220204
[ANSWERS] are the sister cities of that human settlement
['Q165204', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q13220204 . resource:Q165204 property:P190 ?g }
Chiquinquirá Pereira Manzanares
Chiquinquirá, Pereira and Manzanares are the sister cities of that human settlement
Chiquinquirá Pereira Manzanares
action filter_type
action find
entity Mérida
relation sister city
type second-level administrative country subdivision
['Mérida', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:second-level_administrative_country_subdivision . resource:Mérida property:sister_city ?g }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q2512312
P291
Q56061 Q732577 Q571
USER
Which administrative territories are the locations of publication of more number of publications or books than Eppegem ?
(c(Q732577)|c(Q571),P291,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q732577
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action count
action filter_multi_types
action find_reverse
entity Q2512312
relation P291
type Q732577
type Q571
[[{'concept': 'Q732577'}, {'concept': 'Q571'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?l ) WHERE { { ?p property:P291 ?y . ?y rdf:type ontology:Q56061 . ?p rdf:type ontology:Q732577 } UNION { ?p property:P291 ?y . ?y rdf:type ontology:Q56061 . ?p rdf:type ontology:Q571 } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { ?v property:P291 resource:Q2512312 . { { ?v rdf:type ontology:Q732577 } UNION { ?v rdf:type ontology:Q571 } } } } . FILTER ( ?l > ?s ) }
Eppegem
action greater
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type publication
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action count
action filter_multi_types
action find_reverse
entity Eppegem
relation place of publication
type publication
type book
[[{'concept': 'publication'}, {'concept': 'book'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?l ) WHERE { { ?p property:place_of_publication ?y . ?y rdf:type ontology:administrative_territorial_entity . ?p rdf:type ontology:publication } UNION { ?p property:place_of_publication ?y . ?y rdf:type ontology:administrative_territorial_entity . ?p rdf:type ontology:book } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { ?v property:place_of_publication resource:Eppegem . { { ?v rdf:type ontology:publication } UNION { ?v rdf:type ontology:book } } } } . FILTER ( ?l > ?s ) }
[]
administrative territorial entity publication book
Q1085 Q72 Q649
SYSTEM
Prague, Zürich, Moscow
Q982367 Q23337 Q33959 Q586 Q1757 Q1754 Q1022 Q90 Q39561 Q597 Q365 Q5836 Q8818 Q1335 Q1155 Q40347 Q8678 Q490 Q495 Q2044 Q23436 Q2280 Q3141 Q72 Q1297 Q936183 Q84 Q5112 Q2103 Q49111 Q36405 Q270 Q60 Q1492 Q1479 Q2807 Q12225 Q220 Q761 Q1726 Q8717 Q64 Q61 Q62 Q18125 Q12439 Q647 Q641 Q727 Q649 Q24826 Q8757 Q34370 Q207639 Q100 Q3834 Q350 Q1085
(c(Q732577)|c(Q571),P291,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q732577
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action count
action filter_multi_types
action find_reverse
entity Q2512312
relation P291
type Q732577
type Q571
[ANSWERS] are the locations of publication of more number of publications or books than Eppegem
[[{'concept': 'Q732577'}, {'concept': 'Q571'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?l ) WHERE { { ?p property:P291 ?y . ?y rdf:type ontology:Q56061 . ?p rdf:type ontology:Q732577 } UNION { ?p property:P291 ?y . ?y rdf:type ontology:Q56061 . ?p rdf:type ontology:Q571 } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { ?v property:P291 resource:Q2512312 . { { ?v rdf:type ontology:Q732577 } UNION { ?v rdf:type ontology:Q571 } } } } . FILTER ( ?l > ?s ) }
Mineola Salt Lake City Nice Bonn Helsinki Stockholm Stuttgart Paris Burbank Lisbon Cologne Toledo Valencia Montevideo Busto Arsizio Norman Rio de Janeiro Milan Turin Florence Edinburgh Minsk Melbourne Zürich Chicago Tonbridge London Adelaide Bochum Cambridge Aberdeen Warsaw New York City Barcelona Bordeaux Madrid Murcia Rome Białystok Munich Seville Berlin Washington, D.C. San Francisco Manchester Detroit Rennes Venice Amsterdam Moscow Liverpool A Coruña Rotterdam Chichester Boston Konstanz Cambridge Prague
Prague, Zürich and Moscow are the locations of publication of more number of publications or books than Eppegem
Prague Zürich Moscow
action greater
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type publication
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action count
action filter_multi_types
action find_reverse
entity Eppegem
relation place of publication
type publication
type book
[[{'concept': 'publication'}, {'concept': 'book'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?l ) WHERE { { ?p property:place_of_publication ?y . ?y rdf:type ontology:administrative_territorial_entity . ?p rdf:type ontology:publication } UNION { ?p property:place_of_publication ?y . ?y rdf:type ontology:administrative_territorial_entity . ?p rdf:type ontology:book } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { ?v property:place_of_publication resource:Eppegem . { { ?v rdf:type ontology:publication } UNION { ?v rdf:type ontology:book } } } } . FILTER ( ?l > ?s ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q15695
P291
Q56061 Q732577 Q571
USER
And how about Salamanca?
(c(Q732577)|c(Q571),P291,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q732577
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action count
action filter_multi_types
action find_reverse
entity Q15695
relation P291
type Q732577
type Q571
[[{'concept': 'Q732577'}, {'concept': 'Q571'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) ?v WHERE { ?i rdf:type ?o . VALUES ( ?o ) { ( ontology:Q571 ) ( ontology:Q732577 ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { VALUES ( ?a ) { ( ontology:Q571 ) ( ontology:Q732577 ) } . ?q rdf:type ?a } . ?q property:P291 resource:Q15695 } } . FILTER ( ?d > ?h ) }
Salamanca
action greater
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type publication
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action count
action filter_multi_types
action find_reverse
entity Salamanca
relation place of publication
type publication
type book
[[{'concept': 'publication'}, {'concept': 'book'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) ?v WHERE { ?i rdf:type ?o . VALUES ( ?o ) { ( ontology:book ) ( ontology:publication ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { VALUES ( ?a ) { ( ontology:book ) ( ontology:publication ) } . ?q rdf:type ?a } . ?q property:place_of_publication resource:Salamanca } } . FILTER ( ?d > ?h ) }
[]
administrative territorial entity publication book
Q1085 Q72 Q649
SYSTEM
Prague, Zürich, Moscow
Q982367 Q23337 Q33959 Q586 Q1757 Q1754 Q1022 Q90 Q39561 Q597 Q365 Q5836 Q8818 Q1335 Q1155 Q40347 Q8678 Q490 Q495 Q2044 Q23436 Q2280 Q3141 Q72 Q1297 Q936183 Q84 Q5112 Q2103 Q49111 Q36405 Q270 Q60 Q1492 Q1479 Q2807 Q12225 Q220 Q761 Q1726 Q8717 Q64 Q61 Q62 Q18125 Q12439 Q647 Q641 Q727 Q649 Q24826 Q8757 Q34370 Q207639 Q100 Q3834 Q350 Q1085
(c(Q732577)|c(Q571),P291,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q732577
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action count
action filter_multi_types
action find_reverse
entity Q15695
relation P291
type Q732577
type Q571
[ANSWERS]
[[{'concept': 'Q732577'}, {'concept': 'Q571'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) ?v WHERE { ?i rdf:type ?o . VALUES ( ?o ) { ( ontology:Q571 ) ( ontology:Q732577 ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { VALUES ( ?a ) { ( ontology:Q571 ) ( ontology:Q732577 ) } . ?q rdf:type ?a } . ?q property:P291 resource:Q15695 } } . FILTER ( ?d > ?h ) }
Mineola Salt Lake City Nice Bonn Helsinki Stockholm Stuttgart Paris Burbank Lisbon Cologne Toledo Valencia Montevideo Busto Arsizio Norman Rio de Janeiro Milan Turin Florence Edinburgh Minsk Melbourne Zürich Chicago Tonbridge London Adelaide Bochum Cambridge Aberdeen Warsaw New York City Barcelona Bordeaux Madrid Murcia Rome Białystok Munich Seville Berlin Washington, D.C. San Francisco Manchester Detroit Rennes Venice Amsterdam Moscow Liverpool A Coruña Rotterdam Chichester Boston Konstanz Cambridge Prague
Prague Zürich Moscow
action greater
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type publication
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action count
action filter_multi_types
action find_reverse
entity Salamanca
relation place of publication
type publication
type book
[[{'concept': 'publication'}, {'concept': 'book'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) ?v WHERE { ?i rdf:type ?o . VALUES ( ?o ) { ( ontology:book ) ( ontology:publication ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { VALUES ( ?a ) { ( ontology:book ) ( ontology:publication ) } . ?q rdf:type ?a } . ?q property:place_of_publication resource:Salamanca } } . FILTER ( ?d > ?h ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q51111
P163
Q17335294
USER
What is associated with Pereira ?
(Q51111,P163,c(Q17335294))
action filter_type
action find
entity Q51111
relation P163
type Q17335294
['Q51111', 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?p WHERE { resource:Q51111 property:P163 ?p . ?p rdf:type ontology:Q17335294 }
Pereira
action filter_type
action find
entity Pereira
relation flag
type flag or coat of arms
['Pereira', 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?p WHERE { resource:Pereira property:flag ?p . ?p rdf:type ontology:flag_or_coat_of_arms }
[]
flag or coat of arms
Q5456795
SYSTEM
Flag of Pereira
Q5456795
(Q51111,P163,c(Q17335294))
action filter_type
action find
entity Q51111
relation P163
type Q17335294
Of [ANSWER] is associated with Pereira
['Q51111', 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?p WHERE { resource:Q51111 property:P163 ?p . ?p rdf:type ontology:Q17335294 }
Flag of Pereira
Of Flag of Pereira is associated with Pereira
Flag of Pereira
action filter_type
action find
entity Pereira
relation flag
type flag or coat of arms
['Pereira', 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?p WHERE { resource:Pereira property:flag ?p . ?p rdf:type ontology:flag_or_coat_of_arms }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q51111
P190
Q56061
USER
Which administrative territory is sister town of that administrative country subdivision ?
(c(Q56061),P190,Q5456795)
action filter_type
action find
entity Q51111
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q5456795']
SELECT DISTINCT ?q WHERE { resource:Q51111 property:P190 ?q . ?q rdf:type ontology:Q56061 }
Pereira
action filter_type
action find
entity Pereira
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Flag of Pereira']
SELECT DISTINCT ?q WHERE { resource:Pereira property:sister_city ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q984155
SYSTEM
Folsom
Q984155
(c(Q56061),P190,Q5456795)
action filter_type
action find
entity Q51111
relation P190
type Q56061
[ANSWER] is sister town of that administrative country subdivision
[{'concept': 'Q56061'}, 'P190', 'Q5456795']
SELECT DISTINCT ?q WHERE { resource:Q51111 property:P190 ?q . ?q rdf:type ontology:Q56061 }
Folsom
Folsom is sister town of that administrative country subdivision
Folsom
action filter_type
action find
entity Pereira
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Flag of Pereira']
SELECT DISTINCT ?q WHERE { resource:Pereira property:sister_city ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q984155
P1427
Q31629
USER
Which type of sport has that administrative territory as the start location ?
(c(Q31629),P1427,Q984155)
action filter_type
action find_reverse
entity Q984155
relation P1427
type Q31629
[{'concept': 'Q31629'}, 'P1427', 'Q984155']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q31629 . ?p property:P1427 resource:Q984155 }
Folsom
action filter_type
action find_reverse
entity Folsom
relation start point
type type of sport
[{'concept': 'type of sport'}, 'start point', 'Folsom']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:type_of_sport . ?p property:start_point resource:Folsom }
[]
type of sport
Q24070600
SYSTEM
2016 Tour of California, Stage 6
Q24070600
(c(Q31629),P1427,Q984155)
action filter_type
action find_reverse
entity Q984155
relation P1427
type Q31629
[ANSWER] has that administrative territory as the start location
[{'concept': 'Q31629'}, 'P1427', 'Q984155']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q31629 . ?p property:P1427 resource:Q984155 }
2016 Tour of California, Stage 6
2016 Tour of California, Stage 6 has that administrative territory as the start location
2016 Tour of California, Stage 6
action filter_type
action find_reverse
entity Folsom
relation start point
type type of sport
[{'concept': 'type of sport'}, 'start point', 'Folsom']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:type_of_sport . ?p property:start_point resource:Folsom }
[]