Simple Question (Direct)
Simple Question
Q3165845
P21
Q290
USER
What is the sex of Jean-François Périer-Têtedoie ?
(Q3165845,P21,c(Q290))
action filter_type
action find
entity Q3165845
relation P21
type Q290
['Q3165845', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q3165845 property:P21 ?a . ?a rdf:type ontology:Q290 }
Jean-François Périer-Têtedoie
action filter_type
action find
entity Jean-François Périer-Têtedoie
relation gender
type sex
['Jean-François Périer-Têtedoie', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Jean-François_Périer-Têtedoie property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3165845,P21,c(Q290))
action filter_type
action find
entity Q3165845
relation P21
type Q290
The sex of Jean-François Périer-Têtedoie is the [ANSWER]
['Q3165845', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q3165845 property:P21 ?a . ?a rdf:type ontology:Q290 }
male
The sex of Jean-François Périer-Têtedoie is the male
male
action filter_type
action find
entity Jean-François Périer-Têtedoie
relation gender
type sex
['Jean-François Périer-Têtedoie', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Jean-François_Périer-Têtedoie property:gender ?a . ?a rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3165845
P19
Q515
USER
Where was that person born ?
(Q6581097,P19,c(Q515))
action filter_type
action find
entity Q3165845
relation P19
type Q515
['Q6581097', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q515 . resource:Q3165845 property:P19 ?m }
Jean-François Périer-Têtedoie
action filter_type
action find
entity Jean-François Périer-Têtedoie
relation place of birth
type city
['male', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:city . resource:Jean-François_Périer-Têtedoie property:place_of_birth ?m }
[]
city
Q456
SYSTEM
Lyon
Q456
(Q6581097,P19,c(Q515))
action filter_type
action find
entity Q3165845
relation P19
type Q515
That person was born in [ANSWER]
['Q6581097', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q515 . resource:Q3165845 property:P19 ?m }
Lyon
That person was born in Lyon
Lyon
action filter_type
action find
entity Jean-François Périer-Têtedoie
relation place of birth
type city
['male', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:city . resource:Jean-François_Périer-Têtedoie property:place_of_birth ?m }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q456 Q38022 Q4666513
P190
Q56061
USER
Is that city twin city of St. Louis and Müşkəmir ?
(Q456,P190,Q38022) (Q456,P190,Q4666513)
action is_in
entity Q456
action intersection
action find_reverse
entity Q38022
relation P190
action find_reverse
entity Q4666513
relation P190
['Q456', 'P190', 'Q38022'] ['Q456', 'P190', 'Q4666513']
ASK WHERE { resource:Q456 property:P190 resource:Q38022 . resource:Q456 property:P190 resource:Q4666513 }
Lyon St. Louis Müşkəmir
action is_in
entity Lyon
action intersection
action find_reverse
entity St. Louis
relation sister city
action find_reverse
entity Müşkəmir
relation sister city
['Lyon', 'sister city', 'St. Louis'] ['Lyon', 'sister city', 'Müşkəmir']
ASK WHERE { resource:Lyon property:sister_city resource:St._Louis . resource:Lyon property:sister_city resource:Müşkəmir }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q456,P190,Q38022) (Q456,P190,Q4666513)
action is_in
entity Q456
action intersection
action find_reverse
entity Q38022
relation P190
action find_reverse
entity Q4666513
relation P190
[ANSWER]
['Q456', 'P190', 'Q38022'] ['Q456', 'P190', 'Q4666513']
ASK WHERE { resource:Q456 property:P190 resource:Q38022 . resource:Q456 property:P190 resource:Q4666513 }
YES and NO respectively
action is_in
entity Lyon
action intersection
action find_reverse
entity St. Louis
relation sister city
action find_reverse
entity Müşkəmir
relation sister city
['Lyon', 'sister city', 'St. Louis'] ['Lyon', 'sister city', 'Müşkəmir']
ASK WHERE { resource:Lyon property:sister_city resource:St._Louis . resource:Lyon property:sister_city resource:Müşkəmir }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1020709
P1376
Q13220204 Q1048835 Q515
USER
How many cities are the county seat of greater number of administrative country subdivisions and political territories than Catbalogan ?
(c(Q515),P1376,c(Q13220204)|c(Q1048835))
action count
action greater
action union
action find_tuple_counts
relation P1376
type Q515
type Q13220204
action find_tuple_counts
relation P1376
type Q515
type Q1048835
action count
action filter_multi_types
action find
entity Q1020709
relation P1376
type Q13220204
type Q1048835
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q13220204'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { resource:Q1020709 property:P1376 ?c . { { ?c rdf:type ontology:Q13220204 } UNION { ?c rdf:type ontology:Q1048835 } } } } . FILTER ( ?r > ?p ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) ?s WHERE { { ?s property:P1376 ?z . ?s rdf:type ontology:Q515 . ?z rdf:type ontology:Q13220204 } UNION { ?s rdf:type ontology:Q515 . ?z rdf:type ontology:Q1048835 . ?s property:P1376 ?z } } GROUP BY ?s } }
Catbalogan
action count
action greater
action union
action find_tuple_counts
relation capital of
type city
type second-level administrative country subdivision
action find_tuple_counts
relation capital of
type city
type political territorial entity
action count
action filter_multi_types
action find
entity Catbalogan
relation capital of
type second-level administrative country subdivision
type political territorial entity
[{'concept': 'city'}, 'capital of', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { resource:Catbalogan property:capital_of ?c . { { ?c rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?c rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?r > ?p ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) ?s WHERE { { ?s property:capital_of ?z . ?s rdf:type ontology:city . ?z rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?s rdf:type ontology:city . ?z rdf:type ontology:political_territorial_entity . ?s property:capital_of ?z } } GROUP BY ?s } }
[]
second-level administrative country subdivision political territorial entity city
SYSTEM
6
Q2865 Q6602 Q23661 Q2973 Q3958 Q2833
(c(Q515),P1376,c(Q13220204)|c(Q1048835))
action count
action greater
action union
action find_tuple_counts
relation P1376
type Q515
type Q13220204
action find_tuple_counts
relation P1376
type Q515
type Q1048835
action count
action filter_multi_types
action find
entity Q1020709
relation P1376
type Q13220204
type Q1048835
[ANSWER]
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q13220204'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { resource:Q1020709 property:P1376 ?c . { { ?c rdf:type ontology:Q13220204 } UNION { ?c rdf:type ontology:Q1048835 } } } } . FILTER ( ?r > ?p ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) ?s WHERE { { ?s property:P1376 ?z . ?s rdf:type ontology:Q515 . ?z rdf:type ontology:Q13220204 } UNION { ?s rdf:type ontology:Q515 . ?z rdf:type ontology:Q1048835 . ?s property:P1376 ?z } } GROUP BY ?s } }
Kassel Strasbourg Wellington Darmstadt Neubrandenburg Freiburg im Breisgau
6
action count
action greater
action union
action find_tuple_counts
relation capital of
type city
type second-level administrative country subdivision
action find_tuple_counts
relation capital of
type city
type political territorial entity
action count
action filter_multi_types
action find
entity Catbalogan
relation capital of
type second-level administrative country subdivision
type political territorial entity
[{'concept': 'city'}, 'capital of', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { resource:Catbalogan property:capital_of ?c . { { ?c rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?c rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?r > ?p ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) ?s WHERE { { ?s property:capital_of ?z . ?s rdf:type ontology:city . ?z rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?s rdf:type ontology:city . ?z rdf:type ontology:political_territorial_entity . ?s property:capital_of ?z } } GROUP BY ?s } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q456
P276
Q1190554
USER
Which event is located at Lyon ?
(c(Q1190554),P276,Q456)
action filter_type
action find_reverse
entity Q456
relation P276
type Q1190554
[{'concept': 'Q1190554'}, 'P276', 'Q456']
SELECT DISTINCT ?a WHERE { ?a property:P276 resource:Q456 . ?a rdf:type ontology:Q1190554 }
Lyon
action filter_type
action find_reverse
entity Lyon
relation location
type event
[{'concept': 'event'}, 'location', 'Lyon']
SELECT DISTINCT ?a WHERE { ?a property:location resource:Lyon . ?a rdf:type ontology:event }
[]
event
Q23725830
SYSTEM
Nuit debout
Q23725830
(c(Q1190554),P276,Q456)
action filter_type
action find_reverse
entity Q456
relation P276
type Q1190554
[ANSWER] is located at Lyon
[{'concept': 'Q1190554'}, 'P276', 'Q456']
SELECT DISTINCT ?a WHERE { ?a property:P276 resource:Q456 . ?a rdf:type ontology:Q1190554 }
Nuit debout
Nuit debout is located at Lyon
Nuit debout
action filter_type
action find_reverse
entity Lyon
relation location
type event
[{'concept': 'event'}, 'location', 'Lyon']
SELECT DISTINCT ?a WHERE { ?a property:location resource:Lyon . ?a rdf:type ontology:event }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q456
P1427
Q18608583
USER
Which recurring sporting event originates at that city ?
(c(Q18608583),P1427,Q23725830)
action filter_type
action find_reverse
entity Q456
relation P1427
type Q18608583
[{'concept': 'Q18608583'}, 'P1427', 'Q23725830']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q18608583 . ?n property:P1427 resource:Q456 }
Lyon
action filter_type
action find_reverse
entity Lyon
relation start point
type recurring sporting event
[{'concept': 'recurring sporting event'}, 'start point', 'Nuit debout']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:recurring_sporting_event . ?n property:start_point resource:Lyon }
[]
recurring sporting event
Q754990
SYSTEM
1991 Tour de France
Q754990
(c(Q18608583),P1427,Q23725830)
action filter_type
action find_reverse
entity Q456
relation P1427
type Q18608583
[ANSWER] originates at that city
[{'concept': 'Q18608583'}, 'P1427', 'Q23725830']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q18608583 . ?n property:P1427 resource:Q456 }
1991 Tour de France
1991 Tour de France originates at that city
1991 Tour de France
action filter_type
action find_reverse
entity Lyon
relation start point
type recurring sporting event
[{'concept': 'recurring sporting event'}, 'start point', 'Nuit debout']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:recurring_sporting_event . ?n property:start_point resource:Lyon }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q513417
P609
Q515 Q34442 Q83620
USER
How many cities are the destinations of greater number of roads and thoroughfares than Vsetín ?
(c(Q34442)|c(Q83620),P609,c(Q515))
action count
action greater
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q513417
relation P609
type Q34442
type Q83620
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) ?w WHERE { ?d rdf:type ?z . VALUES ( ?z ) { ( ontology:Q83620 ) ( ontology:Q34442 ) } } GROUP BY ?w } . FILTER ( ?q > ?e ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { ?c property:P609 resource:Q513417 . { { ?c rdf:type ontology:Q83620 } UNION { ?c rdf:type ontology:Q34442 } } } } }
Vsetín
action count
action greater
action union
action find_reverse_tuple_counts
relation terminus location
type city
type road
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Vsetín
relation terminus location
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) ?w WHERE { ?d rdf:type ?z . VALUES ( ?z ) { ( ontology:thoroughfare ) ( ontology:road ) } } GROUP BY ?w } . FILTER ( ?q > ?e ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { ?c property:terminus_location resource:Vsetín . { { ?c rdf:type ontology:thoroughfare } UNION { ?c rdf:type ontology:road } } } } }
[]
city road thoroughfare
SYSTEM
8
Q182852 Q58560 Q23768 Q11736 Q211243 Q75110 Q183584 Q14960
(c(Q34442)|c(Q83620),P609,c(Q515))
action count
action greater
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q513417
relation P609
type Q34442
type Q83620
[ANSWER]
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) ?w WHERE { ?d rdf:type ?z . VALUES ( ?z ) { ( ontology:Q83620 ) ( ontology:Q34442 ) } } GROUP BY ?w } . FILTER ( ?q > ?e ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { ?c property:P609 resource:Q513417 . { { ?c rdf:type ontology:Q83620 } UNION { ?c rdf:type ontology:Q34442 } } } } }
Kunming Qinhuangdao Las Vegas Tianjin Yinchuan Dandong Lanzhou Brno
8
action count
action greater
action union
action find_reverse_tuple_counts
relation terminus location
type city
type road
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Vsetín
relation terminus location
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) ?w WHERE { ?d rdf:type ?z . VALUES ( ?z ) { ( ontology:thoroughfare ) ( ontology:road ) } } GROUP BY ?w } . FILTER ( ?q > ?e ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { ?c property:terminus_location resource:Vsetín . { { ?c rdf:type ontology:thoroughfare } UNION { ?c rdf:type ontology:road } } } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1444
Q15617994 Q18608583
USER
Which administrative territories are the destination points for max number of recurring sporting events ?
(c(Q18608583),P1444,Q82707)
action argmax
action find_reverse_tuple_counts
relation P1444
type Q15617994
type Q18608583
[{'concept': 'Q18608583'}, 'P1444', 'Q82707']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?k ) { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?a ) WHERE { ?o property:P1444 ?c . ?c rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q18608583 } GROUP BY ?c } } . FILTER ( ?w = ?k ) . { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?w ) WHERE { ?r property:P1444 ?f . ?r rdf:type ontology:Q18608583 . ?f rdf:type ontology:Q15617994 } GROUP BY ?f } }
action argmax
action find_reverse_tuple_counts
relation destination point
type designation for an administrative territorial entity
type recurring sporting event
[{'concept': 'recurring sporting event'}, 'destination point', 'Greve in Chianti']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?k ) { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?a ) WHERE { ?o property:destination_point ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:recurring_sporting_event } GROUP BY ?c } } . FILTER ( ?w = ?k ) . { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?w ) WHERE { ?r property:destination_point ?f . ?r rdf:type ontology:recurring_sporting_event . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } }
[]
designation for an administrative territorial entity recurring sporting event
Q3639 Q33962 Q270761
SYSTEM
Verbania, Sanremo, Laigueglia
Q3639 Q33962 Q270761
(c(Q18608583),P1444,Q82707)
action argmax
action find_reverse_tuple_counts
relation P1444
type Q15617994
type Q18608583
[ANSWERS] are the destination points for max number of recurring sporting events
[{'concept': 'Q18608583'}, 'P1444', 'Q82707']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?k ) { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?a ) WHERE { ?o property:P1444 ?c . ?c rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q18608583 } GROUP BY ?c } } . FILTER ( ?w = ?k ) . { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?w ) WHERE { ?r property:P1444 ?f . ?r rdf:type ontology:Q18608583 . ?f rdf:type ontology:Q15617994 } GROUP BY ?f } }
Verbania Sanremo Laigueglia
Verbania, Sanremo and Laigueglia are the destination points for max number of recurring sporting events
Verbania Sanremo Laigueglia
action argmax
action find_reverse_tuple_counts
relation destination point
type designation for an administrative territorial entity
type recurring sporting event
[{'concept': 'recurring sporting event'}, 'destination point', 'Greve in Chianti']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?k ) { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?a ) WHERE { ?o property:destination_point ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:recurring_sporting_event } GROUP BY ?c } } . FILTER ( ?w = ?k ) . { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?w ) WHERE { ?r property:destination_point ?f . ?r rdf:type ontology:recurring_sporting_event . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q15617994 Q3305213 Q340169
USER
How many administrative territories are depicted in exactly 1 paintings and medias ?
(c(Q3305213)|c(Q340169),P180,c(Q15617994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q340169
value 1
[[{'concept': 'Q3305213'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) ?x WHERE { { ?d rdf:type ontology:Q3305213 . ?x rdf:type ontology:Q15617994 . ?d property:P180 ?x } UNION { ?d property:P180 ?x . ?x rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q340169 } } GROUP BY ?x } . FILTER ( ?b = 1 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type media
value 1
[[{'concept': 'painting'}, {'concept': 'media'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) ?x WHERE { { ?d rdf:type ontology:painting . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d property:depicts ?x } UNION { ?d property:depicts ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:media } } GROUP BY ?x } . FILTER ( ?b = 1 ) }
[]
designation for an administrative territorial entity painting media
SYSTEM
8
Q3883 Q674904 Q145 Q712 Q532 Q80644 Q772 Q1273
(c(Q3305213)|c(Q340169),P180,c(Q15617994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q340169
value 1
[ANSWER]
[[{'concept': 'Q3305213'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) ?x WHERE { { ?d rdf:type ontology:Q3305213 . ?x rdf:type ontology:Q15617994 . ?d property:P180 ?x } UNION { ?d property:P180 ?x . ?x rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q340169 } } GROUP BY ?x } . FILTER ( ?b = 1 ) }
Catanzaro Krumau am Kamp United Kingdom Fiji village Köngen Drenthe Tuscany
8
action count
action equal
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type media
value 1
[[{'concept': 'painting'}, {'concept': 'media'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) ?x WHERE { { ?d rdf:type ontology:painting . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d property:depicts ?x } UNION { ?d property:depicts ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:media } } GROUP BY ?x } . FILTER ( ?b = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3639
P47
Q15617994
USER
Which administrative territories are bordered by Verbania ?
(Q3639,P47,c(Q15617994))
action filter_type
action find
entity Q3639
relation P47
type Q15617994
['Q3639', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q3639 property:P47 ?r . ?r rdf:type ontology:Q15617994 }
Verbania
action filter_type
action find
entity Verbania
relation shares border with
type designation for an administrative territorial entity
['Verbania', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Verbania property:shares_border_with ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q23700 Q23643 Q39550
SYSTEM
Stresa, Miazzina, Laveno-Mombello
Q23723 Q23238 Q23643 Q23281 Q23213 Q23636 Q23590 Q23692 Q23578 Q23700 Q39550 Q23310
(Q3639,P47,c(Q15617994))
action filter_type
action find
entity Q3639
relation P47
type Q15617994
[ANSWERS] are bordered by Verbania
['Q3639', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q3639 property:P47 ?r . ?r rdf:type ontology:Q15617994 }
Vignone Baveno Miazzina Cambiasca Arizzano Mergozzo Gravellona Toce San Bernardino Verbano Ghiffa Stresa Laveno-Mombello Cossogno
Stresa, Miazzina and Laveno-Mombello are bordered by Verbania
Stresa Miazzina Laveno-Mombello
action filter_type
action find
entity Verbania
relation shares border with
type designation for an administrative territorial entity
['Verbania', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Verbania property:shares_border_with ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q23700 Q23643 Q39550
P47
Q15617994
USER
Which administrative territories share border with Stresa, Miazzina and Laveno-Mombello ?
(Q23700,P47,c(Q15617994)) (Q23643,P47,c(Q15617994)) (Q39550,P47,c(Q15617994))
action union
action filter_type
action find
entity Q23700
relation P47
type Q15617994
action filter_type
action find
entity Q23643
relation P47
type Q15617994
action filter_type
action find
entity Q39550
relation P47
type Q15617994
['Q23700', 'P47', {'concept': 'Q15617994'}] ['Q23643', 'P47', {'concept': 'Q15617994'}] ['Q39550', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?e property:P47 ?q . VALUES ( ?e ) { ( resource:Q23700 ) ( resource:Q23643 ) } }
Stresa Miazzina Laveno-Mombello
action union
action filter_type
action find
entity Stresa
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Miazzina
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Laveno-Mombello
relation shares border with
type designation for an administrative territorial entity
['Stresa', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Miazzina', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Laveno-Mombello', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?e property:shares_border_with ?q . VALUES ( ?e ) { ( resource:Stresa ) ( resource:Miazzina ) } }
[]
designation for an administrative territorial entity
Q3639 Q3639 Q3639
SYSTEM
Verbania
Q23238 Q40658 Q23247 Q23268 Q3639 Q23582 Q23590 Q23662 Q22479 Q39550 Q23322 Q23281 Q23224 Q3639 Q23592 Q23331 Q23294 Q23598 Q23310 Q40903 Q40658 Q3639 Q39790 Q41056 Q23578 Q23700 Q39842
(Q23700,P47,c(Q15617994)) (Q23643,P47,c(Q15617994)) (Q39550,P47,c(Q15617994))
action union
action filter_type
action find
entity Q23700
relation P47
type Q15617994
action filter_type
action find
entity Q23643
relation P47
type Q15617994
action filter_type
action find
entity Q39550
relation P47
type Q15617994
[ANSWER], [ANSWER] and [ANSWER] share border with Stresa, Miazzina and Laveno-Mombello
['Q23700', 'P47', {'concept': 'Q15617994'}] ['Q23643', 'P47', {'concept': 'Q15617994'}] ['Q39550', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?e property:P47 ?q . VALUES ( ?e ) { ( resource:Q23700 ) ( resource:Q23643 ) } }
Baveno Leggiuno Belgirate Brovello-Carpugnino Verbania Gignese Gravellona Toce Omegna Lesa Laveno-Mombello Cursolo-Orasso Cambiasca Aurano Verbania Gurro Falmenta Caprezzo Intragna Cossogno Castelveccana Leggiuno Verbania Sangiano Cittiglio Ghiffa Stresa Caravate
Verbania, Verbania and Verbania share border with Stresa, Miazzina and Laveno-Mombello
Verbania Verbania Verbania
action union
action filter_type
action find
entity Stresa
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Miazzina
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Laveno-Mombello
relation shares border with
type designation for an administrative territorial entity
['Stresa', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Miazzina', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Laveno-Mombello', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?e property:shares_border_with ?q . VALUES ( ?e ) { ( resource:Stresa ) ( resource:Miazzina ) } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3639
P551
Q502895
USER
Who lives in that administrative territory ?
(c(Q502895),P551,Q3639) (c(Q502895),P551,Q3639) (c(Q502895),P551,Q3639)
action filter_type
action find_reverse
entity Q3639
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q3639'] [{'concept': 'Q502895'}, 'P551', 'Q3639'] [{'concept': 'Q502895'}, 'P551', 'Q3639']
SELECT DISTINCT ?h WHERE { ?h property:P551 resource:Q3639 . ?h rdf:type ontology:Q502895 }
Verbania
action filter_type
action find_reverse
entity Verbania
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Verbania'] [{'concept': 'common name'}, 'residence', 'Verbania'] [{'concept': 'common name'}, 'residence', 'Verbania']
SELECT DISTINCT ?h WHERE { ?h property:residence resource:Verbania . ?h rdf:type ontology:common_name }
[]
common name
Q16620181
SYSTEM
Valentina Greggio
Q16620181
(c(Q502895),P551,Q3639) (c(Q502895),P551,Q3639) (c(Q502895),P551,Q3639)
action filter_type
action find_reverse
entity Q3639
relation P551
type Q502895
[ANSWER] lives in that administrative territory
[{'concept': 'Q502895'}, 'P551', 'Q3639'] [{'concept': 'Q502895'}, 'P551', 'Q3639'] [{'concept': 'Q502895'}, 'P551', 'Q3639']
SELECT DISTINCT ?h WHERE { ?h property:P551 resource:Q3639 . ?h rdf:type ontology:Q502895 }
Valentina Greggio
Valentina Greggio lives in that administrative territory
Valentina Greggio
action filter_type
action find_reverse
entity Verbania
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Verbania'] [{'concept': 'common name'}, 'residence', 'Verbania'] [{'concept': 'common name'}, 'residence', 'Verbania']
SELECT DISTINCT ?h WHERE { ?h property:residence resource:Verbania . ?h rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q16620181 Q1062618 Q3639
P19
Q15617994
USER
Does Valentina Greggio have location of birth at Chaoyang District and Verbania ?
(Q16620181,P19,Q1062618) (Q16620181,P19,Q3639)
action is_in
entity Q16620181
action intersection
action find_reverse
entity Q1062618
relation P19
action find_reverse
entity Q3639
relation P19
['Q16620181', 'P19', 'Q1062618'] ['Q16620181', 'P19', 'Q3639']
ASK WHERE { resource:Q16620181 property:P19 resource:Q1062618 . resource:Q16620181 property:P19 resource:Q3639 }
Valentina Greggio Chaoyang District Verbania
action is_in
entity Valentina Greggio
action intersection
action find_reverse
entity Chaoyang District
relation place of birth
action find_reverse
entity Verbania
relation place of birth
['Valentina Greggio', 'place of birth', 'Chaoyang District'] ['Valentina Greggio', 'place of birth', 'Verbania']
ASK WHERE { resource:Valentina_Greggio property:place_of_birth resource:Chaoyang_District . resource:Valentina_Greggio property:place_of_birth resource:Verbania }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q16620181,P19,Q1062618) (Q16620181,P19,Q3639)
action is_in
entity Q16620181
action intersection
action find_reverse
entity Q1062618
relation P19
action find_reverse
entity Q3639
relation P19
[ANSWER]
['Q16620181', 'P19', 'Q1062618'] ['Q16620181', 'P19', 'Q3639']
ASK WHERE { resource:Q16620181 property:P19 resource:Q1062618 . resource:Q16620181 property:P19 resource:Q3639 }
NO and YES respectively
action is_in
entity Valentina Greggio
action intersection
action find_reverse
entity Chaoyang District
relation place of birth
action find_reverse
entity Verbania
relation place of birth
['Valentina Greggio', 'place of birth', 'Chaoyang District'] ['Valentina Greggio', 'place of birth', 'Verbania']
ASK WHERE { resource:Valentina_Greggio property:place_of_birth resource:Chaoyang_District . resource:Valentina_Greggio property:place_of_birth resource:Verbania }
[]