Simple Question (Direct)
Simple Question
Q156420
P47
Q13220204
USER
Who share the border with Skiptvet ?
(Q156420,P47,c(Q13220204))
action filter_type
action find
entity Q156420
relation P47
type Q13220204
['Q156420', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q13220204 . resource:Q156420 property:P47 ?x }
Skiptvet
action filter_type
action find
entity Skiptvet
relation shares border with
type second-level administrative country subdivision
['Skiptvet', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:second-level_administrative_country_subdivision . resource:Skiptvet property:shares_border_with ?x }
[]
second-level administrative country subdivision
Q108025 Q499446 Q48668
SYSTEM
Sarpsborg, Våler, Spydeberg
Q499446 Q108025 Q48668 Q109469 Q113740 Q483969
(Q156420,P47,c(Q13220204))
action filter_type
action find
entity Q156420
relation P47
type Q13220204
[ANSWERS] share the border with Skiptvet
['Q156420', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q13220204 . resource:Q156420 property:P47 ?x }
Våler Sarpsborg Spydeberg Askim Eidsberg Rakkestad
Sarpsborg, Våler and Spydeberg share the border with Skiptvet
Sarpsborg Våler Spydeberg
action filter_type
action find
entity Skiptvet
relation shares border with
type second-level administrative country subdivision
['Skiptvet', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:second-level_administrative_country_subdivision . resource:Skiptvet property:shares_border_with ?x }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q156420
P20
Q502895
USER
Who died in Skiptvet ?
(c(Q502895),P20,Q156420)
action filter_type
action find_reverse
entity Q156420
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q156420']
SELECT DISTINCT ?q WHERE { ?q property:P20 resource:Q156420 . ?q rdf:type ontology:Q502895 }
Skiptvet
action filter_type
action find_reverse
entity Skiptvet
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Skiptvet']
SELECT DISTINCT ?q WHERE { ?q property:place_of_death resource:Skiptvet . ?q rdf:type ontology:common_name }
[]
common name
Q11978031
SYSTEM
Jan Erik Stenberg
Q11978031
(c(Q502895),P20,Q156420)
action filter_type
action find_reverse
entity Q156420
relation P20
type Q502895
[ANSWER] died in Skiptvet
[{'concept': 'Q502895'}, 'P20', 'Q156420']
SELECT DISTINCT ?q WHERE { ?q property:P20 resource:Q156420 . ?q rdf:type ontology:Q502895 }
Jan Erik Stenberg
Jan Erik Stenberg died in Skiptvet
Jan Erik Stenberg
action filter_type
action find_reverse
entity Skiptvet
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Skiptvet']
SELECT DISTINCT ?q WHERE { ?q property:place_of_death resource:Skiptvet . ?q rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q108025
P190
Q56061
USER
Which administrative territories are sister towns of Sarpsborg ?
(Q108025,P190,c(Q56061))
action filter_type
action find
entity Q108025
relation P190
type Q56061
['Q108025', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q108025 property:P190 ?d . ?d rdf:type ontology:Q56061 }
Sarpsborg
action filter_type
action find
entity Sarpsborg
relation sister city
type administrative territorial entity
['Sarpsborg', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Sarpsborg property:sister_city ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q504678 Q5776
SYSTEM
Berwick-upon-Tweed, Bethlehem
Q504678 Q5776
(Q108025,P190,c(Q56061))
action filter_type
action find
entity Q108025
relation P190
type Q56061
[ANSWERS] are sister towns of Sarpsborg
['Q108025', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q108025 property:P190 ?d . ?d rdf:type ontology:Q56061 }
Berwick-upon-Tweed Bethlehem
Berwick-upon-Tweed and Bethlehem are sister towns of Sarpsborg
Berwick-upon-Tweed Bethlehem
action filter_type
action find
entity Sarpsborg
relation sister city
type administrative territorial entity
['Sarpsborg', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Sarpsborg property:sister_city ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q504678 Q5776
P190
Q15617994
USER
Which administrative territories are twin towns of Berwick-upon-Tweed and Bethlehem ?
(Q504678,P190,c(Q15617994)) (Q5776,P190,c(Q15617994))
action union
action filter_type
action find
entity Q504678
relation P190
type Q15617994
action filter_type
action find
entity Q5776
relation P190
type Q15617994
['Q504678', 'P190', {'concept': 'Q15617994'}] ['Q5776', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { ?o property:P190 ?d . VALUES ( ?o ) { ( resource:Q504678 ) ( resource:Q5776 ) } }
Berwick-upon-Tweed Bethlehem
action union
action filter_type
action find
entity Berwick-upon-Tweed
relation sister city
type designation for an administrative territorial entity
action filter_type
action find
entity Bethlehem
relation sister city
type designation for an administrative territorial entity
['Berwick-upon-Tweed', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Bethlehem', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?o property:sister_city ?d . VALUES ( ?o ) { ( resource:Berwick-upon-Tweed ) ( resource:Bethlehem ) } }
[]
designation for an administrative territorial entity
Q13437 Q6259 Q541
SYSTEM
Benevento, Pavia, Orvieto
Q2974 Q72585 Q242533 Q55925 Q51825 Q224144 Q13437 Q52096 Q6259 Q541 Q1280 Q1282 Q52143 Q52089 Q20103 Q128089
(Q504678,P190,c(Q15617994)) (Q5776,P190,c(Q15617994))
action union
action filter_type
action find
entity Q504678
relation P190
type Q15617994
action filter_type
action find
entity Q5776
relation P190
type Q15617994
[ANSWERS] are twin towns of Berwick-upon-Tweed and Bethlehem
['Q504678', 'P190', {'concept': 'Q15617994'}] ['Q5776', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { ?o property:P190 ?d . VALUES ( ?o ) { ( resource:Q504678 ) ( resource:Q5776 ) } }
Haan Sant'Anastasia Civitavecchia Montesarchio Conversano Greccio Benevento Pratovecchio Pavia Orvieto Umbria Lazio Gallipoli, Apulia Montevarchi Assisi Gaeta
Benevento, Pavia and Orvieto are twin towns of Berwick-upon-Tweed and Bethlehem
Benevento Pavia Orvieto
action union
action filter_type
action find
entity Berwick-upon-Tweed
relation sister city
type designation for an administrative territorial entity
action filter_type
action find
entity Bethlehem
relation sister city
type designation for an administrative territorial entity
['Berwick-upon-Tweed', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Bethlehem', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?o property:sister_city ?d . VALUES ( ?o ) { ( resource:Berwick-upon-Tweed ) ( resource:Bethlehem ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q108025
P6
Q502895
USER
Which person does Sarpsborg serve as the head of government for ?
(Q108025,P6,c(Q502895))
action filter_type
action find
entity Q108025
relation P6
type Q502895
['Q108025', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q108025 property:P6 ?u . ?u rdf:type ontology:Q502895 }
Sarpsborg
action filter_type
action find
entity Sarpsborg
relation head of government
type common name
['Sarpsborg', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Sarpsborg property:head_of_government ?u . ?u rdf:type ontology:common_name }
[]
common name
Q12000566
SYSTEM
Sindre Martinsen-Evje
Q12000566
(Q108025,P6,c(Q502895))
action filter_type
action find
entity Q108025
relation P6
type Q502895
[ANSWER] Sarpsborg serves as the head of government
['Q108025', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q108025 property:P6 ?u . ?u rdf:type ontology:Q502895 }
Sindre Martinsen-Evje
Sindre Martinsen-Evje Sarpsborg serves as the head of government
Sindre Martinsen-Evje
action filter_type
action find
entity Sarpsborg
relation head of government
type common name
['Sarpsborg', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Sarpsborg property:head_of_government ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q108025
P1444
Q31629
USER
Which types of sport finally halts at that administrative country subdivision ?
(c(Q31629),P1444,Q12000566)
action filter_type
action find_reverse
entity Q108025
relation P1444
type Q31629
[{'concept': 'Q31629'}, 'P1444', 'Q12000566']
SELECT DISTINCT ?t WHERE { ?t property:P1444 resource:Q108025 . ?t rdf:type ontology:Q31629 }
Sarpsborg
action filter_type
action find_reverse
entity Sarpsborg
relation destination point
type type of sport
[{'concept': 'type of sport'}, 'destination point', 'Sindre Martinsen-Evje']
SELECT DISTINCT ?t WHERE { ?t property:destination_point resource:Sarpsborg . ?t rdf:type ontology:type_of_sport }
[]
type of sport
Q20973564 Q19392888 Q22281260
SYSTEM
2015 Tour of Norway, Stage 1, 2013 Tour of Norway, Stage 1, 2016 Tour of Norway, Stage 5
Q19392888 Q22281260 Q20973564 Q17747711
(c(Q31629),P1444,Q12000566)
action filter_type
action find_reverse
entity Q108025
relation P1444
type Q31629
[ANSWERS]
[{'concept': 'Q31629'}, 'P1444', 'Q12000566']
SELECT DISTINCT ?t WHERE { ?t property:P1444 resource:Q108025 . ?t rdf:type ontology:Q31629 }
2013 Tour of Norway, Stage 1 2016 Tour of Norway, Stage 5 2015 Tour of Norway, Stage 1 2014 Tour of Norway, Stage 2
2015 Tour of Norway, Stage 1, 2013 Tour of Norway, Stage 1 and 2016 Tour of Norway, Stage 5 finally halter at that administrative country subdivision
2015 Tour of Norway, Stage 1 2013 Tour of Norway, Stage 1 2016 Tour of Norway, Stage 5
action filter_type
action find_reverse
entity Sarpsborg
relation destination point
type type of sport
[{'concept': 'type of sport'}, 'destination point', 'Sindre Martinsen-Evje']
SELECT DISTINCT ?t WHERE { ?t property:destination_point resource:Sarpsborg . ?t rdf:type ontology:type_of_sport }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1444
Q62447 Q31629
USER
Which aerodromes marks the end of journey for max number of types of sport ?
(c(Q31629),P1444,Q2308547)
action argmax
action find_reverse_tuple_counts
relation P1444
type Q62447
type Q31629
[{'concept': 'Q31629'}, 'P1444', 'Q2308547']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?r ) AS ?c ) WHERE { ?z rdf:type ontology:Q62447 . ?r rdf:type ontology:Q31629 . ?r property:P1444 ?z } GROUP BY ?z } . FILTER ( ?c = ?m ) . { SELECT DISTINCT ( MAX ( ?v ) AS ?m ) { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?v ) WHERE { ?e rdf:type ontology:Q62447 . ?j rdf:type ontology:Q31629 . ?j property:P1444 ?e } GROUP BY ?e } } }
action argmax
action find_reverse_tuple_counts
relation destination point
type aerodrome
type type of sport
[{'concept': 'type of sport'}, 'destination point', 'Alfonso Bonilla Aragón International Airport']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?r ) AS ?c ) WHERE { ?z rdf:type ontology:aerodrome . ?r rdf:type ontology:type_of_sport . ?r property:destination_point ?z } GROUP BY ?z } . FILTER ( ?c = ?m ) . { SELECT DISTINCT ( MAX ( ?v ) AS ?m ) { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?v ) WHERE { ?e rdf:type ontology:aerodrome . ?j rdf:type ontology:type_of_sport . ?j property:destination_point ?e } GROUP BY ?e } } }
[]
aerodrome type of sport
Q4412650
SYSTEM
Hønefoss Airport, Eggemoen
Q4412650
(c(Q31629),P1444,Q2308547)
action argmax
action find_reverse_tuple_counts
relation P1444
type Q62447
type Q31629
[ANSWER] marks the end of journey for max number of types of sport
[{'concept': 'Q31629'}, 'P1444', 'Q2308547']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?r ) AS ?c ) WHERE { ?z rdf:type ontology:Q62447 . ?r rdf:type ontology:Q31629 . ?r property:P1444 ?z } GROUP BY ?z } . FILTER ( ?c = ?m ) . { SELECT DISTINCT ( MAX ( ?v ) AS ?m ) { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?v ) WHERE { ?e rdf:type ontology:Q62447 . ?j rdf:type ontology:Q31629 . ?j property:P1444 ?e } GROUP BY ?e } } }
Hønefoss Airport, Eggemoen
Hønefoss Airport, Eggemoen marks the end of journey for max number of types of sport
Hønefoss Airport, Eggemoen
action argmax
action find_reverse_tuple_counts
relation destination point
type aerodrome
type type of sport
[{'concept': 'type of sport'}, 'destination point', 'Alfonso Bonilla Aragón International Airport']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?r ) AS ?c ) WHERE { ?z rdf:type ontology:aerodrome . ?r rdf:type ontology:type_of_sport . ?r property:destination_point ?z } GROUP BY ?z } . FILTER ( ?c = ?m ) . { SELECT DISTINCT ( MAX ( ?v ) AS ?m ) { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?v ) WHERE { ?e rdf:type ontology:aerodrome . ?j rdf:type ontology:type_of_sport . ?j property:destination_point ?e } GROUP BY ?e } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P137
Q740752 Q781132 Q62447
USER
Which aerodromes were managed by max number of transport companies and military branches ?
(c(Q62447),P137,c(Q740752)|c(Q781132))
action argmax
action union
action find_tuple_counts
relation P137
type Q62447
type Q740752
action find_tuple_counts
relation P137
type Q62447
type Q781132
[{'concept': 'Q62447'}, 'P137', [{'concept': 'Q740752'}, {'concept': 'Q781132'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?i ) { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?o ) WHERE { { ?s property:P137 ?m . ?s rdf:type ontology:Q62447 . ?m rdf:type ontology:Q740752 } UNION { ?s property:P137 ?m . ?s rdf:type ontology:Q62447 . ?m rdf:type ontology:Q781132 } } GROUP BY ?s } } . { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?c ) WHERE { { ?k property:P137 ?e . ?k rdf:type ontology:Q62447 . ?e rdf:type ontology:Q740752 } UNION { ?k property:P137 ?e . ?k rdf:type ontology:Q62447 . ?e rdf:type ontology:Q781132 } } GROUP BY ?k } . FILTER ( ?c = ?i ) }
action argmax
action union
action find_tuple_counts
relation operator
type aerodrome
type transport company
action find_tuple_counts
relation operator
type aerodrome
type military branch
[{'concept': 'aerodrome'}, 'operator', [{'concept': 'transport company'}, {'concept': 'military branch'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?i ) { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?o ) WHERE { { ?s property:operator ?m . ?s rdf:type ontology:aerodrome . ?m rdf:type ontology:transport_company } UNION { ?s property:operator ?m . ?s rdf:type ontology:aerodrome . ?m rdf:type ontology:military_branch } } GROUP BY ?s } } . { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?c ) WHERE { { ?k property:operator ?e . ?k rdf:type ontology:aerodrome . ?e rdf:type ontology:transport_company } UNION { ?k property:operator ?e . ?k rdf:type ontology:aerodrome . ?e rdf:type ontology:military_branch } } GROUP BY ?k } . FILTER ( ?c = ?i ) }
[]
transport company military branch aerodrome
Q278667
SYSTEM
Rajiv Gandhi International Airport
Q278667
(c(Q62447),P137,c(Q740752)|c(Q781132))
action argmax
action union
action find_tuple_counts
relation P137
type Q62447
type Q740752
action find_tuple_counts
relation P137
type Q62447
type Q781132
[ANSWER] was managed by max number of transport companies and military branches
[{'concept': 'Q62447'}, 'P137', [{'concept': 'Q740752'}, {'concept': 'Q781132'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?i ) { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?o ) WHERE { { ?s property:P137 ?m . ?s rdf:type ontology:Q62447 . ?m rdf:type ontology:Q740752 } UNION { ?s property:P137 ?m . ?s rdf:type ontology:Q62447 . ?m rdf:type ontology:Q781132 } } GROUP BY ?s } } . { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?c ) WHERE { { ?k property:P137 ?e . ?k rdf:type ontology:Q62447 . ?e rdf:type ontology:Q740752 } UNION { ?k property:P137 ?e . ?k rdf:type ontology:Q62447 . ?e rdf:type ontology:Q781132 } } GROUP BY ?k } . FILTER ( ?c = ?i ) }
Rajiv Gandhi International Airport
Rajiv Gandhi International Airport was managed by max number of transport companies and military branches
Rajiv Gandhi International Airport
action argmax
action union
action find_tuple_counts
relation operator
type aerodrome
type transport company
action find_tuple_counts
relation operator
type aerodrome
type military branch
[{'concept': 'aerodrome'}, 'operator', [{'concept': 'transport company'}, {'concept': 'military branch'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?i ) { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?o ) WHERE { { ?s property:operator ?m . ?s rdf:type ontology:aerodrome . ?m rdf:type ontology:transport_company } UNION { ?s property:operator ?m . ?s rdf:type ontology:aerodrome . ?m rdf:type ontology:military_branch } } GROUP BY ?s } } . { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?c ) WHERE { { ?k property:operator ?e . ?k rdf:type ontology:aerodrome . ?e rdf:type ontology:transport_company } UNION { ?k property:operator ?e . ?k rdf:type ontology:aerodrome . ?e rdf:type ontology:military_branch } } GROUP BY ?k } . FILTER ( ?c = ?i ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P137
Q740752 Q43229
USER
How many transport companies and organizations manages that aerodrome ?
(Q278667,P137,c(Q740752)) (Q278667,P137,c(Q43229)) (Q278667,P137,c(Q740752)) (Q278667,P137,c(Q43229))
action count
action union
action filter_type
action find
entity Q278667
relation P137
type Q740752
action filter_type
action find
entity Q278667
relation P137
type Q43229
['Q278667', 'P137', {'concept': 'Q740752'}] ['Q278667', 'P137', {'concept': 'Q43229'}] ['Q278667', 'P137', {'concept': 'Q740752'}] ['Q278667', 'P137', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { resource:Q278667 property:P137 ?d . ?d rdf:type ontology:Q740752 } UNION { ?d rdf:type ontology:Q43229 . resource:Q278667 property:P137 ?d } }
action count
action union
action filter_type
action find
entity Rajiv Gandhi International Airport
relation operator
type transport company
action filter_type
action find
entity Rajiv Gandhi International Airport
relation operator
type organization
['Rajiv Gandhi International Airport', 'operator', {'concept': 'transport company'}] ['Rajiv Gandhi International Airport', 'operator', {'concept': 'organization'}] ['Rajiv Gandhi International Airport', 'operator', {'concept': 'transport company'}] ['Rajiv Gandhi International Airport', 'operator', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { resource:Rajiv_Gandhi_International_Airport property:operator ?d . ?d rdf:type ontology:transport_company } UNION { ?d rdf:type ontology:organization . resource:Rajiv_Gandhi_International_Airport property:operator ?d } }
[]
transport company organization
SYSTEM
2 transport companies and 1 organizations
Q5513791 Q3630199 Q4202182
(Q278667,P137,c(Q740752)) (Q278667,P137,c(Q43229)) (Q278667,P137,c(Q740752)) (Q278667,P137,c(Q43229))
action count
action union
action filter_type
action find
entity Q278667
relation P137
type Q740752
action filter_type
action find
entity Q278667
relation P137
type Q43229
[ANSWER]
['Q278667', 'P137', {'concept': 'Q740752'}] ['Q278667', 'P137', {'concept': 'Q43229'}] ['Q278667', 'P137', {'concept': 'Q740752'}] ['Q278667', 'P137', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { resource:Q278667 property:P137 ?d . ?d rdf:type ontology:Q740752 } UNION { ?d rdf:type ontology:Q43229 . resource:Q278667 property:P137 ?d } }
GMR Group Airports Authority of India Malaysia Airports
2 transport companies and 1 organizations
action count
action union
action filter_type
action find
entity Rajiv Gandhi International Airport
relation operator
type transport company
action filter_type
action find
entity Rajiv Gandhi International Airport
relation operator
type organization
['Rajiv Gandhi International Airport', 'operator', {'concept': 'transport company'}] ['Rajiv Gandhi International Airport', 'operator', {'concept': 'organization'}] ['Rajiv Gandhi International Airport', 'operator', {'concept': 'transport company'}] ['Rajiv Gandhi International Airport', 'operator', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { resource:Rajiv_Gandhi_International_Airport property:operator ?d . ?d rdf:type ontology:transport_company } UNION { ?d rdf:type ontology:organization . resource:Rajiv_Gandhi_International_Airport property:operator ?d } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q278667
P137
Q43229 Q740752
USER
How many organizations or transport companies manages Rajiv Gandhi International Airport ?
(Q278667,P137,c(Q43229)) (Q278667,P137,c(Q740752))
action count
action union
action filter_type
action find
entity Q278667
relation P137
type Q43229
action filter_type
action find
entity Q278667
relation P137
type Q740752
['Q278667', 'P137', {'concept': 'Q43229'}] ['Q278667', 'P137', {'concept': 'Q740752'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { VALUES ( ?m ) { ( ontology:Q43229 ) ( ontology:Q740752 ) } . ?v rdf:type ?m }
Rajiv Gandhi International Airport
action count
action union
action filter_type
action find
entity Rajiv Gandhi International Airport
relation operator
type organization
action filter_type
action find
entity Rajiv Gandhi International Airport
relation operator
type transport company
['Rajiv Gandhi International Airport', 'operator', {'concept': 'organization'}] ['Rajiv Gandhi International Airport', 'operator', {'concept': 'transport company'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { VALUES ( ?m ) { ( ontology:organization ) ( ontology:transport_company ) } . ?v rdf:type ?m }
[]
organization transport company
SYSTEM
3
Q4202182 Q3630199 Q5513791
(Q278667,P137,c(Q43229)) (Q278667,P137,c(Q740752))
action count
action union
action filter_type
action find
entity Q278667
relation P137
type Q43229
action filter_type
action find
entity Q278667
relation P137
type Q740752
[ANSWER]
['Q278667', 'P137', {'concept': 'Q43229'}] ['Q278667', 'P137', {'concept': 'Q740752'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { VALUES ( ?m ) { ( ontology:Q43229 ) ( ontology:Q740752 ) } . ?v rdf:type ?m }
Malaysia Airports Airports Authority of India GMR Group
3
action count
action union
action filter_type
action find
entity Rajiv Gandhi International Airport
relation operator
type organization
action filter_type
action find
entity Rajiv Gandhi International Airport
relation operator
type transport company
['Rajiv Gandhi International Airport', 'operator', {'concept': 'organization'}] ['Rajiv Gandhi International Airport', 'operator', {'concept': 'transport company'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { VALUES ( ?m ) { ( ontology:organization ) ( ontology:transport_company ) } . ?v rdf:type ?m }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1573486
P1444
Q62447 Q3839081
USER
Which disasters end their journey at greater number of aerodromes than LOT Flight 7 ?
(c(Q3839081),P1444,c(Q62447))
action greater
action find_tuple_counts
relation P1444
type Q3839081
type Q62447
action count
action filter_type
action find
entity Q1573486
relation P1444
type Q3839081
[{'concept': 'Q3839081'}, 'P1444', {'concept': 'Q62447'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { resource:Q1573486 property:P1444 ?b . ?b rdf:type ontology:Q3839081 } } . FILTER ( ?o > ?k ) . { SELECT DISTINCT ?u ( COUNT ( ?l ) AS ?o ) WHERE { ?u property:P1444 ?l . ?l rdf:type ontology:Q62447 . ?u rdf:type ontology:Q3839081 } GROUP BY ?u } }
LOT Flight 7
action greater
action find_tuple_counts
relation destination point
type disaster
type aerodrome
action count
action filter_type
action find
entity LOT Flight 7
relation destination point
type disaster
[{'concept': 'disaster'}, 'destination point', {'concept': 'aerodrome'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { resource:LOT_Flight_7 property:destination_point ?b . ?b rdf:type ontology:disaster } } . FILTER ( ?o > ?k ) . { SELECT DISTINCT ?u ( COUNT ( ?l ) AS ?o ) WHERE { ?u property:destination_point ?l . ?l rdf:type ontology:aerodrome . ?u rdf:type ontology:disaster } GROUP BY ?u } }
[]
aerodrome disaster
Q223288 Q17374096 Q251039
SYSTEM
Tenerife airport disaster, Malaysia Airlines Flight 17, US Airways Flight 1549
Q173973 Q21995232 Q251039 Q4217221 Q1434078 Q783597 Q17988809 Q24091473 Q23253749 Q16894153 Q7672526 Q1326918 Q4816544 Q2634895 Q23936619 Q24908390 Q1428147 Q22450721 Q4016231 Q20823597 Q3562572 Q17374096 Q19569675 Q941612 Q7184944 Q18380400 Q4919790 Q2335758 Q4969273 Q17410088 Q18147604 Q2822699 Q381183 Q131311 Q1467946 Q223288
(c(Q3839081),P1444,c(Q62447))
action greater
action find_tuple_counts
relation P1444
type Q3839081
type Q62447
action count
action filter_type
action find
entity Q1573486
relation P1444
type Q3839081
[ANSWERS] end their journey at greater number of aerodromes than LOT Flight 7
[{'concept': 'Q3839081'}, 'P1444', {'concept': 'Q62447'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { resource:Q1573486 property:P1444 ?b . ?b rdf:type ontology:Q3839081 } } . FILTER ( ?o > ?k ) . { SELECT DISTINCT ?u ( COUNT ( ?l ) AS ?o ) WHERE { ?u property:P1444 ?l . ?l rdf:type ontology:Q62447 . ?u rdf:type ontology:Q3839081 } GROUP BY ?u } }
Swissair Flight 306 West Air Sweden Flight 294 US Airways Flight 1549 PIA Flight 705 1972 Königs Wusterhausen air disaster American Airlines Flight 1420 2014 SOCATA TBM crash EgyptAir Flight 804 Flydubai Flight 981 LIAT Flight 319 TWA Flight 841 Ethiopian Airlines Flight 961 Atlantic Southeast Airlines Flight 2311 Nigeria Airways Flight 2120 2016 Turøy helicopter crash 2016 Sunbird Aviation crash Banat Air Flight 166 Daallo Airlines Flight 3159 Airlines PNG Flight 4684 Trigana Air Service Flight 257 Inex-Adria Aviopromet Flight 1308 Malaysia Airlines Flight 17 Delta Air Lines Flight 1086 American Airlines Flight 965 Philippine Airlines Flight 143 2014 Wichita plane crash Thai Airways International Flight 311 Gulf Air Flight 771 Britannia Airways Flight 105 Air Algérie Flight 5017 Aero Flight 217 1955 MacArthur Airport United Airlines crash Aero Flight 311 2010 Polish Air Force Tu-154 crash Malaysian Airline System Flight 653 Tenerife airport disaster
Tenerife airport disaster, Malaysia Airlines Flight 17 and US Airways Flight 1549 end their journey at greater number of aerodromes than LOT Flight 7
Tenerife airport disaster Malaysia Airlines Flight 17 US Airways Flight 1549
action greater
action find_tuple_counts
relation destination point
type disaster
type aerodrome
action count
action filter_type
action find
entity LOT Flight 7
relation destination point
type disaster
[{'concept': 'disaster'}, 'destination point', {'concept': 'aerodrome'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { resource:LOT_Flight_7 property:destination_point ?b . ?b rdf:type ontology:disaster } } . FILTER ( ?o > ?k ) . { SELECT DISTINCT ?u ( COUNT ( ?l ) AS ?o ) WHERE { ?u property:destination_point ?l . ?l rdf:type ontology:aerodrome . ?u rdf:type ontology:disaster } GROUP BY ?u } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q2054084
P1444
Q62447 Q3839081
USER
And what about LOT Polish Airlines Flight 16?
(c(Q3839081),P1444,c(Q62447))
action greater
action find_tuple_counts
relation P1444
type Q3839081
type Q62447
action count
action filter_type
action find
entity Q2054084
relation P1444
type Q3839081
[{'concept': 'Q3839081'}, 'P1444', {'concept': 'Q62447'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?m ) AS ?l ) WHERE { ?w property:P1444 ?m . ?w rdf:type ontology:Q3839081 . ?m rdf:type ontology:Q62447 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { resource:Q2054084 property:P1444 ?y . ?y rdf:type ontology:Q3839081 } } . FILTER ( ?l > ?u ) }
LOT Polish Airlines Flight 16
action greater
action find_tuple_counts
relation destination point
type disaster
type aerodrome
action count
action filter_type
action find
entity LOT Polish Airlines Flight 16
relation destination point
type disaster
[{'concept': 'disaster'}, 'destination point', {'concept': 'aerodrome'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?m ) AS ?l ) WHERE { ?w property:destination_point ?m . ?w rdf:type ontology:disaster . ?m rdf:type ontology:aerodrome } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { resource:LOT_Polish_Airlines_Flight_16 property:destination_point ?y . ?y rdf:type ontology:disaster } } . FILTER ( ?l > ?u ) }
[]
aerodrome disaster
Q223288 Q17374096 Q251039
SYSTEM
Tenerife airport disaster, Malaysia Airlines Flight 17, US Airways Flight 1549
Q173973 Q21995232 Q251039 Q4217221 Q1434078 Q783597 Q17988809 Q24091473 Q23253749 Q16894153 Q7672526 Q1326918 Q4816544 Q2634895 Q23936619 Q24908390 Q1428147 Q22450721 Q4016231 Q20823597 Q3562572 Q17374096 Q19569675 Q941612 Q7184944 Q18380400 Q4919790 Q2335758 Q4969273 Q17410088 Q18147604 Q2822699 Q381183 Q131311 Q1467946 Q223288
(c(Q3839081),P1444,c(Q62447))
action greater
action find_tuple_counts
relation P1444
type Q3839081
type Q62447
action count
action filter_type
action find
entity Q2054084
relation P1444
type Q3839081
[ANSWERS]
[{'concept': 'Q3839081'}, 'P1444', {'concept': 'Q62447'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?m ) AS ?l ) WHERE { ?w property:P1444 ?m . ?w rdf:type ontology:Q3839081 . ?m rdf:type ontology:Q62447 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { resource:Q2054084 property:P1444 ?y . ?y rdf:type ontology:Q3839081 } } . FILTER ( ?l > ?u ) }
Swissair Flight 306 West Air Sweden Flight 294 US Airways Flight 1549 PIA Flight 705 1972 Königs Wusterhausen air disaster American Airlines Flight 1420 2014 SOCATA TBM crash EgyptAir Flight 804 Flydubai Flight 981 LIAT Flight 319 TWA Flight 841 Ethiopian Airlines Flight 961 Atlantic Southeast Airlines Flight 2311 Nigeria Airways Flight 2120 2016 Turøy helicopter crash 2016 Sunbird Aviation crash Banat Air Flight 166 Daallo Airlines Flight 3159 Airlines PNG Flight 4684 Trigana Air Service Flight 257 Inex-Adria Aviopromet Flight 1308 Malaysia Airlines Flight 17 Delta Air Lines Flight 1086 American Airlines Flight 965 Philippine Airlines Flight 143 2014 Wichita plane crash Thai Airways International Flight 311 Gulf Air Flight 771 Britannia Airways Flight 105 Air Algérie Flight 5017 Aero Flight 217 1955 MacArthur Airport United Airlines crash Aero Flight 311 2010 Polish Air Force Tu-154 crash Malaysian Airline System Flight 653 Tenerife airport disaster
Tenerife airport disaster Malaysia Airlines Flight 17 US Airways Flight 1549
action greater
action find_tuple_counts
relation destination point
type disaster
type aerodrome
action count
action filter_type
action find
entity LOT Polish Airlines Flight 16
relation destination point
type disaster
[{'concept': 'disaster'}, 'destination point', {'concept': 'aerodrome'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?m ) AS ?l ) WHERE { ?w property:destination_point ?m . ?w rdf:type ontology:disaster . ?m rdf:type ontology:aerodrome } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { resource:LOT_Polish_Airlines_Flight_16 property:destination_point ?y . ?y rdf:type ontology:disaster } } . FILTER ( ?l > ?u ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q223288 Q17374096 Q251039
P1427
Q62447
USER
Which aerodromes are the start points of those disasters ?
(Q223288,P1427,c(Q62447)) (Q17374096,P1427,c(Q62447)) (Q251039,P1427,c(Q62447))
action filter_type
action find
entity prev_answer
relation P1427
type Q62447
['Q223288', 'P1427', {'concept': 'Q62447'}] ['Q17374096', 'P1427', {'concept': 'Q62447'}] ['Q251039', 'P1427', {'concept': 'Q62447'}]
SELECT DISTINCT ?c WHERE { ?m property:P1427 ?c . VALUES ( ?m ) { ( resource:Q173973 ) ( resource:Q21995232 ) ( resource:Q251039 ) } . ?c rdf:type ontology:Q62447 }
Tenerife airport disaster Malaysia Airlines Flight 17 US Airways Flight 1549
action filter_type
action find
entity prev_answer
relation start point
type aerodrome
['Tenerife airport disaster', 'start point', {'concept': 'aerodrome'}] ['Malaysia Airlines Flight 17', 'start point', {'concept': 'aerodrome'}] ['US Airways Flight 1549', 'start point', {'concept': 'aerodrome'}]
SELECT DISTINCT ?c WHERE { ?m property:start_point ?c . VALUES ( ?m ) { ( resource:Swissair_Flight_306 ) ( resource:West_Air_Sweden_Flight_294 ) ( resource:US_Airways_Flight_1549 ) } . ?c rdf:type ontology:aerodrome }
[]
aerodrome
Q9694 Q9694 Q319654
SYSTEM
Amsterdam Airport Schiphol for 1st, 2nd, LaGuardia Airport for 3rd
Q9694 Q9694 Q319654
(Q223288,P1427,c(Q62447)) (Q17374096,P1427,c(Q62447)) (Q251039,P1427,c(Q62447))
action filter_type
action find
entity prev_answer
relation P1427
type Q62447
[ANSWERS]
['Q223288', 'P1427', {'concept': 'Q62447'}] ['Q17374096', 'P1427', {'concept': 'Q62447'}] ['Q251039', 'P1427', {'concept': 'Q62447'}]
SELECT DISTINCT ?c WHERE { ?m property:P1427 ?c . VALUES ( ?m ) { ( resource:Q173973 ) ( resource:Q21995232 ) ( resource:Q251039 ) } . ?c rdf:type ontology:Q62447 }
Amsterdam Airport Schiphol Amsterdam Airport Schiphol LaGuardia Airport
Amsterdam Airport Schiphol, Amsterdam Airport Schiphol and LaGuardia Airport are the start points of those disasters
Amsterdam Airport Schiphol Amsterdam Airport Schiphol LaGuardia Airport
action filter_type
action find
entity prev_answer
relation start point
type aerodrome
['Tenerife airport disaster', 'start point', {'concept': 'aerodrome'}] ['Malaysia Airlines Flight 17', 'start point', {'concept': 'aerodrome'}] ['US Airways Flight 1549', 'start point', {'concept': 'aerodrome'}]
SELECT DISTINCT ?c WHERE { ?m property:start_point ?c . VALUES ( ?m ) { ( resource:Swissair_Flight_306 ) ( resource:West_Air_Sweden_Flight_294 ) ( resource:US_Airways_Flight_1549 ) } . ?c rdf:type ontology:aerodrome }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q108025
P17
Q15617994
USER
Which administrative territory is Sarpsborg present in ?
(Q108025,P17,c(Q15617994))
action filter_type
action find
entity Q108025
relation P17
type Q15617994
['Q108025', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q108025 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
Sarpsborg
action filter_type
action find
entity Sarpsborg
relation country
type designation for an administrative territorial entity
['Sarpsborg', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Sarpsborg property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20
SYSTEM
Norway
Q20
(Q108025,P17,c(Q15617994))
action filter_type
action find
entity Q108025
relation P17
type Q15617994
Sarpsborg is in [ANSWER]
['Q108025', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q108025 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
Norway
Sarpsborg is in Norway
Norway
action filter_type
action find
entity Sarpsborg
relation country
type designation for an administrative territorial entity
['Sarpsborg', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Sarpsborg property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q26404298
Q15617994
USER
And how about 62 And 64, Fordington High Street?
(Q26404298,P17,c(Q15617994))
action filter_type
action find
entity Q26404298
relation P17
type Q15617994
['Q26404298', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . resource:Q26404298 property:P17 ?m }
62 And 64, Fordington High Street
action filter_type
action find
entity 62 And 64, Fordington High Street
relation country
type designation for an administrative territorial entity
['62 And 64, Fordington High Street', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:62_And_64,_Fordington_High_Street property:country ?m }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q26404298,P17,c(Q15617994))
action filter_type
action find
entity Q26404298
relation P17
type Q15617994
[ANSWER]
['Q26404298', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . resource:Q26404298 property:P17 ?m }
United Kingdom
United Kingdom
action filter_type
action find
entity 62 And 64, Fordington High Street
relation country
type designation for an administrative territorial entity
['62 And 64, Fordington High Street', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:62_And_64,_Fordington_High_Street property:country ?m }
[]