Simple Question (Direct)
Simple Question
Q591580
P206
Q15324
USER
Which body of water is located next to Ribadesella ?
(Q591580,P206,c(Q15324))
action filter_type
action find
entity Q591580
relation P206
type Q15324
['Q591580', 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ?c WHERE { resource:Q591580 property:P206 ?c . ?c rdf:type ontology:Q15324 }
Ribadesella
action filter_type
action find
entity Ribadesella
relation located next to body of water
type body of water
['Ribadesella', 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ?c WHERE { resource:Ribadesella property:located_next_to_body_of_water ?c . ?c rdf:type ontology:body_of_water }
[]
body of water
Q2090594
SYSTEM
Cantabrian Sea
Q2090594
(Q591580,P206,c(Q15324))
action filter_type
action find
entity Q591580
relation P206
type Q15324
[ANSWER] is located next to Ribadesella
['Q591580', 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ?c WHERE { resource:Q591580 property:P206 ?c . ?c rdf:type ontology:Q15324 }
Cantabrian Sea
Cantabrian Sea is located next to Ribadesella
Cantabrian Sea
action filter_type
action find
entity Ribadesella
relation located next to body of water
type body of water
['Ribadesella', 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ?c WHERE { resource:Ribadesella property:located_next_to_body_of_water ?c . ?c rdf:type ontology:body_of_water }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2090594
P403
Q355304
USER
Which watercourses ultimately merges into that body of water ?
(c(Q355304),P403,Q2090594)
action filter_type
action find_reverse
entity Q2090594
relation P403
type Q355304
[{'concept': 'Q355304'}, 'P403', 'Q2090594']
SELECT DISTINCT ?o WHERE { ?o property:P403 resource:Q2090594 . ?o rdf:type ontology:Q355304 }
Cantabrian Sea
action filter_type
action find_reverse
entity Cantabrian Sea
relation mouth of the watercourse
type watercourse
[{'concept': 'watercourse'}, 'mouth of the watercourse', 'Cantabrian Sea']
SELECT DISTINCT ?o WHERE { ?o property:mouth_of_the_watercourse resource:Cantabrian_Sea . ?o rdf:type ontology:watercourse }
[]
watercourse
Q14358 Q14360 Q14357
SYSTEM
Miera River, Pas, Asón River
Q204073 Q1181363 Q14358 Q2744506 Q14367 Q14360 Q3881306 Q14357
(c(Q355304),P403,Q2090594)
action filter_type
action find_reverse
entity Q2090594
relation P403
type Q355304
[ANSWERS] ultimately merge into that body of water
[{'concept': 'Q355304'}, 'P403', 'Q2090594']
SELECT DISTINCT ?o WHERE { ?o property:P403 resource:Q2090594 . ?o rdf:type ontology:Q355304 }
Urola Deba Miera River Urumea Besaya River Pas Oiartzun Asón River
Miera River, Pas and Asón River ultimately merge into that body of water
Miera River Pas Asón River
action filter_type
action find_reverse
entity Cantabrian Sea
relation mouth of the watercourse
type watercourse
[{'concept': 'watercourse'}, 'mouth of the watercourse', 'Cantabrian Sea']
SELECT DISTINCT ?o WHERE { ?o property:mouth_of_the_watercourse resource:Cantabrian_Sea . ?o rdf:type ontology:watercourse }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q14358 Q14360 Q14357
P17
Q15617994
USER
Which administrative territories are Miera River, Pas and Asón River located in ?
(Q14358,P17,c(Q15617994)) (Q14360,P17,c(Q15617994)) (Q14357,P17,c(Q15617994))
action union
action filter_type
action find
entity Q14358
relation P17
type Q15617994
action filter_type
action find
entity Q14360
relation P17
type Q15617994
action filter_type
action find
entity Q14357
relation P17
type Q15617994
['Q14358', 'P17', {'concept': 'Q15617994'}] ['Q14360', 'P17', {'concept': 'Q15617994'}] ['Q14357', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { resource:Q14358 property:P17 ?q . ?q rdf:type ontology:Q15617994 } UNION { resource:Q14360 property:P17 ?q . ?q rdf:type ontology:Q15617994 } }
Miera River Pas Asón River
action union
action filter_type
action find
entity Miera River
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Pas
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Asón River
relation country
type designation for an administrative territorial entity
['Miera River', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Pas', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Asón River', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { resource:Miera_River property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Pas property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q29 Q29 Q29
SYSTEM
Spain
Q29 Q29 Q29
(Q14358,P17,c(Q15617994)) (Q14360,P17,c(Q15617994)) (Q14357,P17,c(Q15617994))
action union
action filter_type
action find
entity Q14358
relation P17
type Q15617994
action filter_type
action find
entity Q14360
relation P17
type Q15617994
action filter_type
action find
entity Q14357
relation P17
type Q15617994
[ANSWER], [ANSWER] and [ANSWER] are Miera River, Pas and Asón River located in
['Q14358', 'P17', {'concept': 'Q15617994'}] ['Q14360', 'P17', {'concept': 'Q15617994'}] ['Q14357', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { resource:Q14358 property:P17 ?q . ?q rdf:type ontology:Q15617994 } UNION { resource:Q14360 property:P17 ?q . ?q rdf:type ontology:Q15617994 } }
Spain Spain Spain
Spain, Spain and Spain are Miera River, Pas and Asón River located in
Spain Spain Spain
action union
action filter_type
action find
entity Miera River
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Pas
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Asón River
relation country
type designation for an administrative territorial entity
['Miera River', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Pas', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Asón River', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { resource:Miera_River property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Pas property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q14358
P30
Q2221906
USER
Which geographic location is Miera River situated in ?
(Q29,P30,c(Q2221906)) (Q29,P30,c(Q2221906)) (Q29,P30,c(Q2221906))
action filter_type
action find
entity Q14358
relation P30
type Q2221906
['Q29', 'P30', {'concept': 'Q2221906'}] ['Q29', 'P30', {'concept': 'Q2221906'}] ['Q29', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q2221906 . resource:Q14358 property:P30 ?x }
Miera River
action filter_type
action find
entity Miera River
relation continent
type geographic location
['Spain', 'continent', {'concept': 'geographic location'}] ['Spain', 'continent', {'concept': 'geographic location'}] ['Spain', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:geographic_location . resource:Miera_River property:continent ?x }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q29,P30,c(Q2221906)) (Q29,P30,c(Q2221906)) (Q29,P30,c(Q2221906))
action filter_type
action find
entity Q14358
relation P30
type Q2221906
Which geographic location is Miera River situated in
['Q29', 'P30', {'concept': 'Q2221906'}] ['Q29', 'P30', {'concept': 'Q2221906'}] ['Q29', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q2221906 . resource:Q14358 property:P30 ?x }
Europe
Which geographic location is Miera River situated in
Europe
action filter_type
action find
entity Miera River
relation continent
type geographic location
['Spain', 'continent', {'concept': 'geographic location'}] ['Spain', 'continent', {'concept': 'geographic location'}] ['Spain', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:geographic_location . resource:Miera_River property:continent ?x }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q355304 Q1048835 Q15700808
USER
Which watercourses are around 1 political territories and urban unit definitions named after ?
(c(Q1048835)|c(Q15700808),P138,c(Q355304))
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q355304
type Q1048835
action find_reverse_tuple_counts
relation P138
type Q355304
type Q15700808
value 1
[[{'concept': 'Q1048835'}, {'concept': 'Q15700808'}], 'P138', {'concept': 'Q355304'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) ?w WHERE { VALUES ( ?o ) { ( ontology:Q1048835 ) ( ontology:Q15700808 ) } . ?p rdf:type ?o } GROUP BY ?w } . FILTER ( ?u = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation named after
type watercourse
type political territorial entity
action find_reverse_tuple_counts
relation named after
type watercourse
type urban unit definition
value 1
[[{'concept': 'political territorial entity'}, {'concept': 'urban unit definition'}], 'named after', {'concept': 'watercourse'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) ?w WHERE { VALUES ( ?o ) { ( ontology:political_territorial_entity ) ( ontology:urban_unit_definition ) } . ?p rdf:type ?o } GROUP BY ?w } . FILTER ( ?u = 1 ) }
[]
watercourse political territorial entity urban unit definition
Q173017 Q890526 Q4689339
SYSTEM
Limpopo River, Kymi River, Afon Lwyd
Q4689339 Q4976164 Q173017 Q890526
(c(Q1048835)|c(Q15700808),P138,c(Q355304))
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q355304
type Q1048835
action find_reverse_tuple_counts
relation P138
type Q355304
type Q15700808
value 1
[ANSWERS] are around 1 political territories and urban unit definitions named after
[[{'concept': 'Q1048835'}, {'concept': 'Q15700808'}], 'P138', {'concept': 'Q355304'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) ?w WHERE { VALUES ( ?o ) { ( ontology:Q1048835 ) ( ontology:Q15700808 ) } . ?p rdf:type ?o } GROUP BY ?w } . FILTER ( ?u = 1 ) }
Afon Lwyd Brown Hill Creek Limpopo River Kymi River
Limpopo River, Kymi River and Afon Lwyd are around 1 political territories and urban unit definitions named after
Limpopo River Kymi River Afon Lwyd
action approx
action union
action find_reverse_tuple_counts
relation named after
type watercourse
type political territorial entity
action find_reverse_tuple_counts
relation named after
type watercourse
type urban unit definition
value 1
[[{'concept': 'political territorial entity'}, {'concept': 'urban unit definition'}], 'named after', {'concept': 'watercourse'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) ?w WHERE { VALUES ( ?o ) { ( ontology:political_territorial_entity ) ( ontology:urban_unit_definition ) } . ?p rdf:type ?o } GROUP BY ?w } . FILTER ( ?u = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P30
Q2221906 Q355304 Q34763
USER
Which geographic locations are max number of watercourses or peninsulas situated ?
(c(Q355304)|c(Q34763),P30,c(Q2221906))
action argmax
action union
action find_reverse_tuple_counts
relation P30
type Q2221906
type Q355304
action find_reverse_tuple_counts
relation P30
type Q2221906
type Q34763
[[{'concept': 'Q355304'}, {'concept': 'Q34763'}], 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?p ) { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?x ) WHERE { { ?j rdf:type ontology:Q2221906 . ?t rdf:type ontology:Q355304 . ?t property:P30 ?j } UNION { ?t property:P30 ?j . ?j rdf:type ontology:Q2221906 . ?t rdf:type ontology:Q34763 } } GROUP BY ?j } } . { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?e ) WHERE { { ?u property:P30 ?a . ?a rdf:type ontology:Q2221906 . ?u rdf:type ontology:Q34763 } UNION { ?a rdf:type ontology:Q2221906 . ?u rdf:type ontology:Q355304 . ?u property:P30 ?a } } GROUP BY ?a } . FILTER ( ?e = ?p ) }
action argmax
action union
action find_reverse_tuple_counts
relation continent
type geographic location
type watercourse
action find_reverse_tuple_counts
relation continent
type geographic location
type peninsula
[[{'concept': 'watercourse'}, {'concept': 'peninsula'}], 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?p ) { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?x ) WHERE { { ?j rdf:type ontology:geographic_location . ?t rdf:type ontology:watercourse . ?t property:continent ?j } UNION { ?t property:continent ?j . ?j rdf:type ontology:geographic_location . ?t rdf:type ontology:peninsula } } GROUP BY ?j } } . { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?e ) WHERE { { ?u property:continent ?a . ?a rdf:type ontology:geographic_location . ?u rdf:type ontology:peninsula } UNION { ?a rdf:type ontology:geographic_location . ?u rdf:type ontology:watercourse . ?u property:continent ?a } } GROUP BY ?a } . FILTER ( ?e = ?p ) }
[]
geographic location watercourse peninsula
Q51
SYSTEM
Antarctica
Q51
(c(Q355304)|c(Q34763),P30,c(Q2221906))
action argmax
action union
action find_reverse_tuple_counts
relation P30
type Q2221906
type Q355304
action find_reverse_tuple_counts
relation P30
type Q2221906
type Q34763
[ANSWER] is max number of watercourses or peninsulas situated
[[{'concept': 'Q355304'}, {'concept': 'Q34763'}], 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?p ) { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?x ) WHERE { { ?j rdf:type ontology:Q2221906 . ?t rdf:type ontology:Q355304 . ?t property:P30 ?j } UNION { ?t property:P30 ?j . ?j rdf:type ontology:Q2221906 . ?t rdf:type ontology:Q34763 } } GROUP BY ?j } } . { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?e ) WHERE { { ?u property:P30 ?a . ?a rdf:type ontology:Q2221906 . ?u rdf:type ontology:Q34763 } UNION { ?a rdf:type ontology:Q2221906 . ?u rdf:type ontology:Q355304 . ?u property:P30 ?a } } GROUP BY ?a } . FILTER ( ?e = ?p ) }
Antarctica
Antarctica is max number of watercourses or peninsulas situated
Antarctica
action argmax
action union
action find_reverse_tuple_counts
relation continent
type geographic location
type watercourse
action find_reverse_tuple_counts
relation continent
type geographic location
type peninsula
[[{'concept': 'watercourse'}, {'concept': 'peninsula'}], 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?p ) { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?x ) WHERE { { ?j rdf:type ontology:geographic_location . ?t rdf:type ontology:watercourse . ?t property:continent ?j } UNION { ?t property:continent ?j . ?j rdf:type ontology:geographic_location . ?t rdf:type ontology:peninsula } } GROUP BY ?j } } . { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?e ) WHERE { { ?u property:continent ?a . ?a rdf:type ontology:geographic_location . ?u rdf:type ontology:peninsula } UNION { ?a rdf:type ontology:geographic_location . ?u rdf:type ontology:watercourse . ?u property:continent ?a } } GROUP BY ?a } . FILTER ( ?e = ?p ) }
[]