Simple Question (Direct)
Simple Question
Q981988
P19
Q56061
USER
Which administrative territory is the birthplace of Stuart Christie ?
(Q981988,P19,c(Q56061))
action filter_type
action find
entity Q981988
relation P19
type Q56061
['Q981988', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q981988 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Stuart Christie
action filter_type
action find
entity Stuart Christie
relation place of birth
type administrative territorial entity
['Stuart Christie', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Stuart_Christie property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q4093
SYSTEM
Glasgow
Q4093
(Q981988,P19,c(Q56061))
action filter_type
action find
entity Q981988
relation P19
type Q56061
[ANSWER] is the birthplace of Stuart Christie
['Q981988', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q981988 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Glasgow
Glasgow is the birthplace of Stuart Christie
Glasgow
action filter_type
action find
entity Stuart Christie
relation place of birth
type administrative territorial entity
['Stuart Christie', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Stuart_Christie property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4093
P47
Q56061
USER
Which administrative territory does that one share a border with ?
(c(Q56061),P47,Q4093)
action filter_type
action find
entity Q4093
relation P47
type Q56061
[{'concept': 'Q56061'}, 'P47', 'Q4093']
SELECT DISTINCT ?l WHERE { resource:Q4093 property:P47 ?l . ?l rdf:type ontology:Q56061 }
Glasgow
action filter_type
action find
entity Glasgow
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Glasgow']
SELECT DISTINCT ?l WHERE { resource:Glasgow property:shares_border_with ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2746326
SYSTEM
Aberfoyle
Q2746326
(c(Q56061),P47,Q4093)
action filter_type
action find
entity Q4093
relation P47
type Q56061
That one shares a border with the [ANSWER]
[{'concept': 'Q56061'}, 'P47', 'Q4093']
SELECT DISTINCT ?l WHERE { resource:Q4093 property:P47 ?l . ?l rdf:type ontology:Q56061 }
Aberfoyle
That one shares a border with the Aberfoyle
Aberfoyle
action filter_type
action find
entity Glasgow
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Glasgow']
SELECT DISTINCT ?l WHERE { resource:Glasgow property:shares_border_with ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4093
P206
Q355304
USER
Which watercourse is situated close to Glasgow ?
(Q4093,P206,c(Q355304))
action filter_type
action find
entity Q4093
relation P206
type Q355304
['Q4093', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q355304 . resource:Q4093 property:P206 ?k }
Glasgow
action filter_type
action find
entity Glasgow
relation located next to body of water
type watercourse
['Glasgow', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:watercourse . resource:Glasgow property:located_next_to_body_of_water ?k }
[]
watercourse
Q19721
SYSTEM
Clyde
Q19721
(Q4093,P206,c(Q355304))
action filter_type
action find
entity Q4093
relation P206
type Q355304
Was [ANSWER] is situated close to Glasgow
['Q4093', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q355304 . resource:Q4093 property:P206 ?k }
Clyde
Was Clyde is situated close to Glasgow
Clyde
action filter_type
action find
entity Glasgow
relation located next to body of water
type watercourse
['Glasgow', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:watercourse . resource:Glasgow property:located_next_to_body_of_water ?k }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q801
Q355304
USER
And how about Israel?
(Q801,P206,c(Q355304))
action filter_type
action find
entity Q801
relation P206
type Q355304
['Q801', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q355304 . resource:Q801 property:P206 ?o }
Israel
action filter_type
action find
entity Israel
relation located next to body of water
type watercourse
['Israel', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:watercourse . resource:Israel property:located_next_to_body_of_water ?o }
[]
watercourse
Q40059
SYSTEM
Jordan River
Q40059
(Q801,P206,c(Q355304))
action filter_type
action find
entity Q801
relation P206
type Q355304
[ANSWER]
['Q801', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q355304 . resource:Q801 property:P206 ?o }
Jordan River
Jordan River
action filter_type
action find
entity Israel
relation located next to body of water
type watercourse
['Israel', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:watercourse . resource:Israel property:located_next_to_body_of_water ?o }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q40059 Q4852583
P206
Q15617994
USER
Is Balsz Elementary School District located nearby that watercourse ?
(Q4852583,P206,Q40059)
action is_in
entity Q4852583
action find
entity Q40059
relation P206
['Q4852583', 'P206', 'Q40059']
ASK WHERE { resource:Q40059 property:P206 resource:Q4852583 }
Jordan River Balsz Elementary School District
action is_in
entity Balsz Elementary School District
action find
entity Jordan River
relation located next to body of water
['Balsz Elementary School District', 'located next to body of water', 'Jordan River']
ASK WHERE { resource:Jordan_River property:located_next_to_body_of_water resource:Balsz_Elementary_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q4852583,P206,Q40059)
action is_in
entity Q4852583
action find
entity Q40059
relation P206
[ANSWER]
['Q4852583', 'P206', 'Q40059']
ASK WHERE { resource:Q40059 property:P206 resource:Q4852583 }
No
action is_in
entity Balsz Elementary School District
action find
entity Jordan River
relation located next to body of water
['Balsz Elementary School District', 'located next to body of water', 'Jordan River']
ASK WHERE { resource:Jordan_River property:located_next_to_body_of_water resource:Balsz_Elementary_School_District }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q355304 Q355304 Q56061
USER
Which watercourses are max number of watercourses or administrative territories named after ?
(c(Q355304)|c(Q56061),P138,c(Q355304))
action argmax
action union
action find_reverse_tuple_counts
relation P138
type Q355304
type Q355304
action find_reverse_tuple_counts
relation P138
type Q355304
type Q56061
[[{'concept': 'Q355304'}, {'concept': 'Q56061'}], 'P138', {'concept': 'Q355304'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) ?w WHERE { { ?k property:P138 ?w . ?w rdf:type ontology:Q355304 . ?k rdf:type ontology:Q355304 } UNION { ?k property:P138 ?w . ?w rdf:type ontology:Q355304 . ?k rdf:type ontology:Q56061 } } GROUP BY ?w } } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) ?o WHERE { ?e rdf:type ?b . VALUES ( ?b ) { ( ontology:Q355304 ) ( ontology:Q56061 ) } } GROUP BY ?o } . FILTER ( ?l = ?m ) }
action argmax
action union
action find_reverse_tuple_counts
relation named after
type watercourse
type watercourse
action find_reverse_tuple_counts
relation named after
type watercourse
type administrative territorial entity
[[{'concept': 'watercourse'}, {'concept': 'administrative territorial entity'}], 'named after', {'concept': 'watercourse'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) ?w WHERE { { ?k property:named_after ?w . ?w rdf:type ontology:watercourse . ?k rdf:type ontology:watercourse } UNION { ?k property:named_after ?w . ?w rdf:type ontology:watercourse . ?k rdf:type ontology:administrative_territorial_entity } } GROUP BY ?w } } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) ?o WHERE { ?e rdf:type ?b . VALUES ( ?b ) { ( ontology:watercourse ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?o } . FILTER ( ?l = ?m ) }
[]
watercourse watercourse administrative territorial entity
Q649527
SYSTEM
Samara River
Q649527
(c(Q355304)|c(Q56061),P138,c(Q355304))
action argmax
action union
action find_reverse_tuple_counts
relation P138
type Q355304
type Q355304
action find_reverse_tuple_counts
relation P138
type Q355304
type Q56061
Which watercourses is max number of watercourses or administrative territories named after
[[{'concept': 'Q355304'}, {'concept': 'Q56061'}], 'P138', {'concept': 'Q355304'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) ?w WHERE { { ?k property:P138 ?w . ?w rdf:type ontology:Q355304 . ?k rdf:type ontology:Q355304 } UNION { ?k property:P138 ?w . ?w rdf:type ontology:Q355304 . ?k rdf:type ontology:Q56061 } } GROUP BY ?w } } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) ?o WHERE { ?e rdf:type ?b . VALUES ( ?b ) { ( ontology:Q355304 ) ( ontology:Q56061 ) } } GROUP BY ?o } . FILTER ( ?l = ?m ) }
Samara River
Which watercourses is max number of watercourses or administrative territories named after
Samara River
action argmax
action union
action find_reverse_tuple_counts
relation named after
type watercourse
type watercourse
action find_reverse_tuple_counts
relation named after
type watercourse
type administrative territorial entity
[[{'concept': 'watercourse'}, {'concept': 'administrative territorial entity'}], 'named after', {'concept': 'watercourse'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) ?w WHERE { { ?k property:named_after ?w . ?w rdf:type ontology:watercourse . ?k rdf:type ontology:watercourse } UNION { ?k property:named_after ?w . ?w rdf:type ontology:watercourse . ?k rdf:type ontology:administrative_territorial_entity } } GROUP BY ?w } } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) ?o WHERE { ?e rdf:type ?b . VALUES ( ?b ) { ( ontology:watercourse ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?o } . FILTER ( ?l = ?m ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q2221906 Q15324 Q355304
USER
Which watercourses are a component of exactly 1 geographic locations or bodies of water ?
(c(Q355304),P361,c(Q2221906)|c(Q15324))
action equal
action union
action find_tuple_counts
relation P361
type Q355304
type Q2221906
action find_tuple_counts
relation P361
type Q355304
type Q15324
value 1
[{'concept': 'Q355304'}, 'P361', [{'concept': 'Q2221906'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?m WHERE { ?f rdf:type ?k . VALUES ( ?k ) { ( ontology:Q2221906 ) ( ontology:Q15324 ) } } GROUP BY ?m } . FILTER ( ?n = 1 ) }
action equal
action union
action find_tuple_counts
relation part of
type watercourse
type geographic location
action find_tuple_counts
relation part of
type watercourse
type body of water
value 1
[{'concept': 'watercourse'}, 'part of', [{'concept': 'geographic location'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?m WHERE { ?f rdf:type ?k . VALUES ( ?k ) { ( ontology:geographic_location ) ( ontology:body_of_water ) } } GROUP BY ?m } . FILTER ( ?n = 1 ) }
[]
geographic location body of water watercourse
Q3432787 Q2450564 Q2936058
SYSTEM
rio del Palazzo, canale di Cannaregio, canale della Giudecca
Q38330 Q37826 Q2450564 Q3432787 Q37663 Q79185 Q2936058
(c(Q355304),P361,c(Q2221906)|c(Q15324))
action equal
action union
action find_tuple_counts
relation P361
type Q355304
type Q2221906
action find_tuple_counts
relation P361
type Q355304
type Q15324
value 1
[ANSWERS] are a component of exactly 1 geographic locations or bodies of water
[{'concept': 'Q355304'}, 'P361', [{'concept': 'Q2221906'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?m WHERE { ?f rdf:type ?k . VALUES ( ?k ) { ( ontology:Q2221906 ) ( ontology:Q15324 ) } } GROUP BY ?m } . FILTER ( ?n = 1 ) }
Pywiack Cascade Twin Falls canale di Cannaregio rio del Palazzo Blum Basin Falls Peenestrom canale della Giudecca
Rio del Palazzo, canale di Cannaregio and canale della Giudecca are a component of exactly 1 geographic locations or bodies of water
rio del Palazzo canale di Cannaregio canale della Giudecca
action equal
action union
action find_tuple_counts
relation part of
type watercourse
type geographic location
action find_tuple_counts
relation part of
type watercourse
type body of water
value 1
[{'concept': 'watercourse'}, 'part of', [{'concept': 'geographic location'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?m WHERE { ?f rdf:type ?k . VALUES ( ?k ) { ( ontology:geographic_location ) ( ontology:body_of_water ) } } GROUP BY ?m } . FILTER ( ?n = 1 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q2470303
P3173
Q355304 Q811979
USER
How many architectural structures have view to greater number of watercourses than Echo Point ?
(c(Q811979),P3173,c(Q355304))
action count
action greater
action find_tuple_counts
relation P3173
type Q811979
type Q355304
action count
action filter_type
action find
entity Q2470303
relation P3173
type Q811979
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?b ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?n ) AS ?j ) WHERE { ?o property:P3173 ?n . ?o rdf:type ontology:Q811979 . ?n rdf:type ontology:Q355304 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { resource:Q2470303 property:P3173 ?x . ?x rdf:type ontology:Q811979 } } . FILTER ( ?j > ?r ) }
Echo Point
action count
action greater
action find_tuple_counts
relation offers view on
type architectural structure
type watercourse
action count
action filter_type
action find
entity Echo Point
relation offers view on
type architectural structure
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?b ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?n ) AS ?j ) WHERE { ?o property:offers_view_on ?n . ?o rdf:type ontology:architectural_structure . ?n rdf:type ontology:watercourse } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { resource:Echo_Point property:offers_view_on ?x . ?x rdf:type ontology:architectural_structure } } . FILTER ( ?j > ?r ) }
[]
watercourse architectural structure
SYSTEM
2
Q26196531 Q2433474
(c(Q811979),P3173,c(Q355304))
action count
action greater
action find_tuple_counts
relation P3173
type Q811979
type Q355304
action count
action filter_type
action find
entity Q2470303
relation P3173
type Q811979
[ANSWER]
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?b ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?n ) AS ?j ) WHERE { ?o property:P3173 ?n . ?o rdf:type ontology:Q811979 . ?n rdf:type ontology:Q355304 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { resource:Q2470303 property:P3173 ?x . ?x rdf:type ontology:Q811979 } } . FILTER ( ?j > ?r ) }
Washburn Point Tunnel View
2
action count
action greater
action find_tuple_counts
relation offers view on
type architectural structure
type watercourse
action count
action filter_type
action find
entity Echo Point
relation offers view on
type architectural structure
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?b ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?n ) AS ?j ) WHERE { ?o property:offers_view_on ?n . ?o rdf:type ontology:architectural_structure . ?n rdf:type ontology:watercourse } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { resource:Echo_Point property:offers_view_on ?x . ?x rdf:type ontology:architectural_structure } } . FILTER ( ?j > ?r ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q3108318
P3173
Q355304 Q811979
USER
And what about Glacier Point?
(c(Q811979),P3173,c(Q355304))
action count
action greater
action find_tuple_counts
relation P3173
type Q811979
type Q355304
action count
action filter_type
action find
entity Q3108318
relation P3173
type Q811979
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { ?g rdf:type ontology:Q811979 . resource:Q3108318 property:P3173 ?g } } . FILTER ( ?b > ?k ) . { SELECT DISTINCT ?x ( COUNT ( ?w ) AS ?b ) WHERE { ?x rdf:type ontology:Q811979 . ?w rdf:type ontology:Q355304 . ?x property:P3173 ?w } GROUP BY ?x } }
Glacier Point
action count
action greater
action find_tuple_counts
relation offers view on
type architectural structure
type watercourse
action count
action filter_type
action find
entity Glacier Point
relation offers view on
type architectural structure
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { ?g rdf:type ontology:architectural_structure . resource:Glacier_Point property:offers_view_on ?g } } . FILTER ( ?b > ?k ) . { SELECT DISTINCT ?x ( COUNT ( ?w ) AS ?b ) WHERE { ?x rdf:type ontology:architectural_structure . ?w rdf:type ontology:watercourse . ?x property:offers_view_on ?w } GROUP BY ?x } }
[]
watercourse architectural structure
SYSTEM
2
Q26196531 Q2433474
(c(Q811979),P3173,c(Q355304))
action count
action greater
action find_tuple_counts
relation P3173
type Q811979
type Q355304
action count
action filter_type
action find
entity Q3108318
relation P3173
type Q811979
[ANSWER]
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { ?g rdf:type ontology:Q811979 . resource:Q3108318 property:P3173 ?g } } . FILTER ( ?b > ?k ) . { SELECT DISTINCT ?x ( COUNT ( ?w ) AS ?b ) WHERE { ?x rdf:type ontology:Q811979 . ?w rdf:type ontology:Q355304 . ?x property:P3173 ?w } GROUP BY ?x } }
Washburn Point Tunnel View
2
action count
action greater
action find_tuple_counts
relation offers view on
type architectural structure
type watercourse
action count
action filter_type
action find
entity Glacier Point
relation offers view on
type architectural structure
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { ?g rdf:type ontology:architectural_structure . resource:Glacier_Point property:offers_view_on ?g } } . FILTER ( ?b > ?k ) . { SELECT DISTINCT ?x ( COUNT ( ?w ) AS ?b ) WHERE { ?x rdf:type ontology:architectural_structure . ?w rdf:type ontology:watercourse . ?x property:offers_view_on ?w } GROUP BY ?x } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1441
Q15416 Q838948 Q502895
USER
How many people are from the works of approximately 1 television programs or works of art ?
(c(Q502895),P1441,c(Q15416)|c(Q838948))
action count
action approx
action union
action find_tuple_counts
relation P1441
type Q502895
type Q15416
action find_tuple_counts
relation P1441
type Q502895
type Q838948
value 1
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q15416'}, {'concept': 'Q838948'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { FILTER ( ?l = 1 ) . { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?l ) WHERE { { ?j property:P1441 ?z . ?j rdf:type ontology:Q502895 . ?z rdf:type ontology:Q15416 } UNION { ?j property:P1441 ?z . ?z rdf:type ontology:Q838948 . ?j rdf:type ontology:Q502895 } } GROUP BY ?j } }
action count
action approx
action union
action find_tuple_counts
relation present in work
type common name
type television program
action find_tuple_counts
relation present in work
type common name
type work of art
value 1
[{'concept': 'common name'}, 'present in work', [{'concept': 'television program'}, {'concept': 'work of art'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { FILTER ( ?l = 1 ) . { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?l ) WHERE { { ?j property:present_in_work ?z . ?j rdf:type ontology:common_name . ?z rdf:type ontology:television_program } UNION { ?j property:present_in_work ?z . ?z rdf:type ontology:work_of_art . ?j rdf:type ontology:common_name } } GROUP BY ?j } }
[]
television program work of art common name
SYSTEM
40
Q24579400 Q24624067 Q3343834 Q24577230 Q494455 Q24622402 Q20656752 Q1353836 Q19975705 Q25885222 Q181538 Q24623408 Q24624893 Q1396131 Q3259530 Q24625686 Q24577318 Q24625326 Q26858752 Q24633210 Q1346246 Q550255 Q24625073 Q24623579 Q264699 Q24577238 Q24632700 Q24626363 Q24633126 Q3658171 Q4804479 Q24623790 Q200947 Q24083251 Q25923184 Q26858995 Q372783 Q16006746 Q24626010 Q26858919
(c(Q502895),P1441,c(Q15416)|c(Q838948))
action count
action approx
action union
action find_tuple_counts
relation P1441
type Q502895
type Q15416
action find_tuple_counts
relation P1441
type Q502895
type Q838948
value 1
[ANSWER]
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q15416'}, {'concept': 'Q838948'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { FILTER ( ?l = 1 ) . { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?l ) WHERE { { ?j property:P1441 ?z . ?j rdf:type ontology:Q502895 . ?z rdf:type ontology:Q15416 } UNION { ?j property:P1441 ?z . ?z rdf:type ontology:Q838948 . ?j rdf:type ontology:Q502895 } } GROUP BY ?j } }
Jebidiah Farnsworth Bea Hansen Norman Winther Harriet Mutesi Orville Wright Frank Fauteux Bernard C. Webber Hrothgar Daniel Webster Cluff James Harcourt Rudolf Abel Eldon Hanan Raymond Sybert Wilbur Wright Loretta Jones Andy Fitzgerald Sara Katende Miriam Webber Sarah Katende George "Tiny" Myers Johnny Ringo J. William Fulbright Richard Livesey Wallace Quirey Wil Wheaton Robert Katende John Stello Mel Gouthro Donald Bangs Phiona Mutesi Ash Vasudevan D.A. Brown Ahmad ibn Fadlan Stan the Man Elizabeth Ham Aloysius Kyazze Adrian Cronauer James B. Donovan Ervin Maske Hope Katende
40
action count
action approx
action union
action find_tuple_counts
relation present in work
type common name
type television program
action find_tuple_counts
relation present in work
type common name
type work of art
value 1
[{'concept': 'common name'}, 'present in work', [{'concept': 'television program'}, {'concept': 'work of art'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { FILTER ( ?l = 1 ) . { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?l ) WHERE { { ?j property:present_in_work ?z . ?j rdf:type ontology:common_name . ?z rdf:type ontology:television_program } UNION { ?j property:present_in_work ?z . ?z rdf:type ontology:work_of_art . ?j rdf:type ontology:common_name } } GROUP BY ?j } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3432787
P177
Q811979
USER
Which architectural structure ranges over rio del Palazzo ?
(c(Q811979),P177,Q3432787)
action filter_type
action find_reverse
entity Q3432787
relation P177
type Q811979
[{'concept': 'Q811979'}, 'P177', 'Q3432787']
SELECT DISTINCT ?f WHERE { ?f property:P177 resource:Q3432787 . ?f rdf:type ontology:Q811979 }
rio del Palazzo
action filter_type
action find_reverse
entity rio del Palazzo
relation crosses
type architectural structure
[{'concept': 'architectural structure'}, 'crosses', 'rio del Palazzo']
SELECT DISTINCT ?f WHERE { ?f property:crosses resource:rio_del_Palazzo . ?f rdf:type ontology:architectural_structure }
[]
architectural structure
Q1268692
SYSTEM
Ponte della Paglia
Q1268692
(c(Q811979),P177,Q3432787)
action filter_type
action find_reverse
entity Q3432787
relation P177
type Q811979
[ANSWER] ranges over rio del Palazzo
[{'concept': 'Q811979'}, 'P177', 'Q3432787']
SELECT DISTINCT ?f WHERE { ?f property:P177 resource:Q3432787 . ?f rdf:type ontology:Q811979 }
Ponte della Paglia
Ponte della Paglia ranges over rio del Palazzo
Ponte della Paglia
action filter_type
action find_reverse
entity rio del Palazzo
relation crosses
type architectural structure
[{'concept': 'architectural structure'}, 'crosses', 'rio del Palazzo']
SELECT DISTINCT ?f WHERE { ?f property:crosses resource:rio_del_Palazzo . ?f rdf:type ontology:architectural_structure }
[]