Simple Question (Direct)
Simple Question
Q4131560
P86
Q502895
USER
Which person composed The Ugly Swans ?
(Q4131560,P86,c(Q502895))
action filter_type
action find
entity Q4131560
relation P86
type Q502895
['Q4131560', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q4131560 property:P86 ?b }
The Ugly Swans
action filter_type
action find
entity The Ugly Swans
relation composer
type common name
['The Ugly Swans', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:The_Ugly_Swans property:composer ?b }
[]
common name
Q4418606
SYSTEM
Andrey Sigle
Q4418606
(Q4131560,P86,c(Q502895))
action filter_type
action find
entity Q4131560
relation P86
type Q502895
[ANSWER] composed The Ugly Swans
['Q4131560', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q4131560 property:P86 ?b }
Andrey Sigle
Andrey Sigle composed The Ugly Swans
Andrey Sigle
action filter_type
action find
entity The Ugly Swans
relation composer
type common name
['The Ugly Swans', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:The_Ugly_Swans property:composer ?b }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4131560
P495
Q15617994
USER
Which administrative territory is the country of origin of that work of art ?
(Q4418606,P495,c(Q15617994))
action filter_type
action find
entity Q4131560
relation P495
type Q15617994
['Q4418606', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . resource:Q4131560 property:P495 ?r }
The Ugly Swans
action filter_type
action find
entity The Ugly Swans
relation country of origin
type designation for an administrative territorial entity
['Andrey Sigle', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:The_Ugly_Swans property:country_of_origin ?r }
[]
designation for an administrative territorial entity
Q159
SYSTEM
Russia
Q159
(Q4418606,P495,c(Q15617994))
action filter_type
action find
entity Q4131560
relation P495
type Q15617994
The [ANSWER] is the country of origin of that work of art
['Q4418606', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . resource:Q4131560 property:P495 ?r }
Russia
The Russia is the country of origin of that work of art
Russia
action filter_type
action find
entity The Ugly Swans
relation country of origin
type designation for an administrative territorial entity
['Andrey Sigle', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:The_Ugly_Swans property:country_of_origin ?r }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q159
P30
Q2221906
USER
Which geographic locations are that administrative territory situated in ?
(Q159,P30,c(Q2221906))
action filter_type
action find
entity Q159
relation P30
type Q2221906
['Q159', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?a WHERE { resource:Q159 property:P30 ?a . ?a rdf:type ontology:Q2221906 }
Russia
action filter_type
action find
entity Russia
relation continent
type geographic location
['Russia', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?a WHERE { resource:Russia property:continent ?a . ?a rdf:type ontology:geographic_location }
[]
geographic location
Q46 Q5401 Q48
SYSTEM
Europe, Eurasia, Asia
Q46 Q5401 Q48
(Q159,P30,c(Q2221906))
action filter_type
action find
entity Q159
relation P30
type Q2221906
That administrative territory are situated in [ANSWERS]
['Q159', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?a WHERE { resource:Q159 property:P30 ?a . ?a rdf:type ontology:Q2221906 }
Europe Eurasia Asia
That administrative territory are situated in Europe, Eurasia and Asia
Europe Eurasia Asia
action filter_type
action find
entity Russia
relation continent
type geographic location
['Russia', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?a WHERE { resource:Russia property:continent ?a . ?a rdf:type ontology:geographic_location }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q7758112
P941
Q838948 Q2342494 Q95074
USER
Which works of art inspired approximately the same number of collectables or fictional characters as The Pretty Sister of Jose ?
(c(Q2342494)|c(Q95074),P941,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
action count
action filter_multi_types
action find_reverse
entity Q7758112
relation P941
type Q2342494
type Q95074
[[{'concept': 'Q2342494'}, {'concept': 'Q95074'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) ?d WHERE { { ?y property:P941 ?d . ?d rdf:type ontology:Q838948 . ?y rdf:type ontology:Q2342494 } UNION { ?y property:P941 ?d . ?d rdf:type ontology:Q838948 . ?y rdf:type ontology:Q95074 } } GROUP BY ?d } . FILTER ( ?w = ?n ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { ?c property:P941 resource:Q7758112 . { { ?c rdf:type ontology:Q2342494 } UNION { ?c rdf:type ontology:Q95074 } } } } }
The Pretty Sister of Jose
action approx
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type collectable
action find_reverse_tuple_counts
relation inspired by
type work of art
type fictional character
action count
action filter_multi_types
action find_reverse
entity The Pretty Sister of Jose
relation inspired by
type collectable
type fictional character
[[{'concept': 'collectable'}, {'concept': 'fictional character'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) ?d WHERE { { ?y property:inspired_by ?d . ?d rdf:type ontology:work_of_art . ?y rdf:type ontology:collectable } UNION { ?y property:inspired_by ?d . ?d rdf:type ontology:work_of_art . ?y rdf:type ontology:fictional_character } } GROUP BY ?d } . FILTER ( ?w = ?n ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { ?c property:inspired_by resource:The_Pretty_Sister_of_Jose . { { ?c rdf:type ontology:collectable } UNION { ?c rdf:type ontology:fictional_character } } } } }
[]
work of art collectable fictional character
Q1144983 Q17738 Q107724
SYSTEM
Animal Kingdom, Star Wars Episode IV: A New Hope, Thunderball
Q125191 Q1136305 Q1198611 Q107724 Q1217787 Q1856846 Q7758112 Q46239 Q1852671 Q17738 Q181598 Q2568137 Q753298 Q201293 Q1754737 Q1432001 Q41567 Q1144983 Q18668045 Q7445655 Q186014 Q4936847 Q3223805 Q5968141 Q734834 Q1170100 Q375786 Q83186 Q465478 Q169082
(c(Q2342494)|c(Q95074),P941,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
action count
action filter_multi_types
action find_reverse
entity Q7758112
relation P941
type Q2342494
type Q95074
[ANSWERS] inspired approximately the same number of collectables or fictional characters as The Pretty Sister of Jose
[[{'concept': 'Q2342494'}, {'concept': 'Q95074'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) ?d WHERE { { ?y property:P941 ?d . ?d rdf:type ontology:Q838948 . ?y rdf:type ontology:Q2342494 } UNION { ?y property:P941 ?d . ?d rdf:type ontology:Q838948 . ?y rdf:type ontology:Q95074 } } GROUP BY ?d } . FILTER ( ?w = ?n ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { ?c property:P941 resource:Q7758112 . { { ?c rdf:type ontology:Q2342494 } UNION { ?c rdf:type ontology:Q95074 } } } } }
photograph Doryphoros The Absent-Minded Professor Thunderball The Time Machine The Ballad of Cable Hogue The Pretty Sister of Jose Statue of Zeus at Olympia Carnival of Souls Star Wars Episode IV: A New Hope King Lear How to Explain Pictures to a Dead Hare Uncle Vanya Roman Holiday Lady Snowblood Torquato Tasso Hamlet Animal Kingdom The Old Fisherman Seedbed Zeitgeist: The Movie Body Pressure The Judgement of Paris La sirena varada Ghent Altarpiece The Philadelphia Experiment Hippolytus Romeo and Juliet Star Trek II: The Wrath of Khan 10 Things I Hate About You
Animal Kingdom, Star Wars Episode IV: A New Hope and Thunderball inspired approximately the same number of collectables or fictional characters as The Pretty Sister of Jose
Animal Kingdom Star Wars Episode IV: A New Hope Thunderball
action approx
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type collectable
action find_reverse_tuple_counts
relation inspired by
type work of art
type fictional character
action count
action filter_multi_types
action find_reverse
entity The Pretty Sister of Jose
relation inspired by
type collectable
type fictional character
[[{'concept': 'collectable'}, {'concept': 'fictional character'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) ?d WHERE { { ?y property:inspired_by ?d . ?d rdf:type ontology:work_of_art . ?y rdf:type ontology:collectable } UNION { ?y property:inspired_by ?d . ?d rdf:type ontology:work_of_art . ?y rdf:type ontology:fictional_character } } GROUP BY ?d } . FILTER ( ?w = ?n ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { ?c property:inspired_by resource:The_Pretty_Sister_of_Jose . { { ?c rdf:type ontology:collectable } UNION { ?c rdf:type ontology:fictional_character } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q201293
P941
Q838948 Q2342494 Q95074
USER
And how about Roman Holiday?
(c(Q2342494)|c(Q95074),P941,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
action count
action filter_multi_types
action find_reverse
entity Q201293
relation P941
type Q2342494
type Q95074
[[{'concept': 'Q2342494'}, {'concept': 'Q95074'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) ?f WHERE { ?z rdf:type ?x . VALUES ( ?x ) { ( ontology:Q2342494 ) ( ontology:Q95074 ) } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { VALUES ( ?c ) { ( ontology:Q2342494 ) ( ontology:Q95074 ) } . ?h rdf:type ?c } . ?h property:P941 resource:Q201293 } } . FILTER ( ?s = ?j ) }
Roman Holiday
action approx
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type collectable
action find_reverse_tuple_counts
relation inspired by
type work of art
type fictional character
action count
action filter_multi_types
action find_reverse
entity Roman Holiday
relation inspired by
type collectable
type fictional character
[[{'concept': 'collectable'}, {'concept': 'fictional character'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) ?f WHERE { ?z rdf:type ?x . VALUES ( ?x ) { ( ontology:collectable ) ( ontology:fictional_character ) } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { VALUES ( ?c ) { ( ontology:collectable ) ( ontology:fictional_character ) } . ?h rdf:type ?c } . ?h property:inspired_by resource:Roman_Holiday } } . FILTER ( ?s = ?j ) }
[]
work of art collectable fictional character
Q1144983 Q17738 Q107724
SYSTEM
Animal Kingdom, Star Wars Episode IV: A New Hope, Thunderball
Q125191 Q1136305 Q1198611 Q107724 Q1217787 Q1856846 Q7758112 Q46239 Q1852671 Q17738 Q181598 Q2568137 Q753298 Q201293 Q1754737 Q1432001 Q41567 Q1144983 Q18668045 Q7445655 Q186014 Q4936847 Q3223805 Q5968141 Q734834 Q1170100 Q375786 Q83186 Q465478 Q169082
(c(Q2342494)|c(Q95074),P941,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
action count
action filter_multi_types
action find_reverse
entity Q201293
relation P941
type Q2342494
type Q95074
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q95074'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) ?f WHERE { ?z rdf:type ?x . VALUES ( ?x ) { ( ontology:Q2342494 ) ( ontology:Q95074 ) } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { VALUES ( ?c ) { ( ontology:Q2342494 ) ( ontology:Q95074 ) } . ?h rdf:type ?c } . ?h property:P941 resource:Q201293 } } . FILTER ( ?s = ?j ) }
photograph Doryphoros The Absent-Minded Professor Thunderball The Time Machine The Ballad of Cable Hogue The Pretty Sister of Jose Statue of Zeus at Olympia Carnival of Souls Star Wars Episode IV: A New Hope King Lear How to Explain Pictures to a Dead Hare Uncle Vanya Roman Holiday Lady Snowblood Torquato Tasso Hamlet Animal Kingdom The Old Fisherman Seedbed Zeitgeist: The Movie Body Pressure The Judgement of Paris La sirena varada Ghent Altarpiece The Philadelphia Experiment Hippolytus Romeo and Juliet Star Trek II: The Wrath of Khan 10 Things I Hate About You
Animal Kingdom Star Wars Episode IV: A New Hope Thunderball
action approx
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type collectable
action find_reverse_tuple_counts
relation inspired by
type work of art
type fictional character
action count
action filter_multi_types
action find_reverse
entity Roman Holiday
relation inspired by
type collectable
type fictional character
[[{'concept': 'collectable'}, {'concept': 'fictional character'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) ?f WHERE { ?z rdf:type ?x . VALUES ( ?x ) { ( ontology:collectable ) ( ontology:fictional_character ) } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { VALUES ( ?c ) { ( ontology:collectable ) ( ontology:fictional_character ) } . ?h rdf:type ?c } . ?h property:inspired_by resource:Roman_Holiday } } . FILTER ( ?s = ?j ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q46
P361
Q2221906
USER
What is Europe a portion of ?
(Q46,P361,c(Q2221906))
action filter_type
action find
entity Q46
relation P361
type Q2221906
['Q46', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?r WHERE { resource:Q46 property:P361 ?r . ?r rdf:type ontology:Q2221906 }
Europe
action filter_type
action find
entity Europe
relation part of
type geographic location
['Europe', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?r WHERE { resource:Europe property:part_of ?r . ?r rdf:type ontology:geographic_location }
[]
geographic location
Q5401
SYSTEM
Eurasia
Q5401
(Q46,P361,c(Q2221906))
action filter_type
action find
entity Q46
relation P361
type Q2221906
Europe a portion of is in [ANSWER]
['Q46', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?r WHERE { resource:Q46 property:P361 ?r . ?r rdf:type ontology:Q2221906 }
Eurasia
Europe a portion of is in Eurasia
Eurasia
action filter_type
action find
entity Europe
relation part of
type geographic location
['Europe', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?r WHERE { resource:Europe property:part_of ?r . ?r rdf:type ontology:geographic_location }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1907989
Q2221906
USER
And how about Distribution transformer?
(Q1907989,P361,c(Q2221906))
action filter_type
action find
entity Q1907989
relation P361
type Q2221906
['Q1907989', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?t WHERE { resource:Q1907989 property:P361 ?t . ?t rdf:type ontology:Q2221906 }
Distribution transformer
action filter_type
action find
entity Distribution transformer
relation part of
type geographic location
['Distribution transformer', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?t WHERE { resource:Distribution_transformer property:part_of ?t . ?t rdf:type ontology:geographic_location }
[]
geographic location
Q914711
SYSTEM
transmission tower
Q914711
(Q1907989,P361,c(Q2221906))
action filter_type
action find
entity Q1907989
relation P361
type Q2221906
[ANSWER]
['Q1907989', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?t WHERE { resource:Q1907989 property:P361 ?t . ?t rdf:type ontology:Q2221906 }
transmission tower
transmission tower
action filter_type
action find
entity Distribution transformer
relation part of
type geographic location
['Distribution transformer', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?t WHERE { resource:Distribution_transformer property:part_of ?t . ?t rdf:type ontology:geographic_location }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q2998020
P138
Q15617994 Q337567 Q15617994
USER
Which administrative territories have greater number of administrative territories or still waterss as their namesake than Corse ?
(c(Q15617994),P138,c(Q15617994)|c(Q337567))
action greater
action union
action find_tuple_counts
relation P138
type Q15617994
type Q15617994
action find_tuple_counts
relation P138
type Q15617994
type Q337567
action count
action filter_multi_types
action find
entity Q2998020
relation P138
type Q15617994
type Q337567
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { resource:Q2998020 property:P138 ?r . { { ?r rdf:type ontology:Q15617994 } UNION { ?r rdf:type ontology:Q337567 } } } } . FILTER ( ?g > ?b ) . { SELECT DISTINCT ?u ( COUNT ( ?l ) AS ?g ) WHERE { { ?u property:P138 ?l . ?u rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } UNION { ?u property:P138 ?l . ?u rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q337567 } } GROUP BY ?u } }
Corse
action greater
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type still waters
action count
action filter_multi_types
action find
entity Corse
relation named after
type designation for an administrative territorial entity
type still waters
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { resource:Corse property:named_after ?r . { { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?r rdf:type ontology:still_waters } } } } . FILTER ( ?g > ?b ) . { SELECT DISTINCT ?u ( COUNT ( ?l ) AS ?g ) WHERE { { ?u property:named_after ?l . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?u property:named_after ?l . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:still_waters } } GROUP BY ?u } }
[]
designation for an administrative territorial entity still waters designation for an administrative territorial entity
Q217 Q1904 Q1093
SYSTEM
Republic of Moldova, Ontario, Limburg
Q707 Q1093 Q625403 Q691368 Q1904 Q1101 Q1788988 Q217 Q12761
(c(Q15617994),P138,c(Q15617994)|c(Q337567))
action greater
action union
action find_tuple_counts
relation P138
type Q15617994
type Q15617994
action find_tuple_counts
relation P138
type Q15617994
type Q337567
action count
action filter_multi_types
action find
entity Q2998020
relation P138
type Q15617994
type Q337567
[ANSWERS] have greater number of administrative territories or still waterss as their namesake than Corse
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { resource:Q2998020 property:P138 ?r . { { ?r rdf:type ontology:Q15617994 } UNION { ?r rdf:type ontology:Q337567 } } } } . FILTER ( ?g > ?b ) . { SELECT DISTINCT ?u ( COUNT ( ?l ) AS ?g ) WHERE { { ?u property:P138 ?l . ?u rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } UNION { ?u property:P138 ?l . ?u rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q337567 } } GROUP BY ?u } }
Flevoland Limburg Schwielowsee Léman Ontario North Brabant Trasimène Republic of Moldova Seine-Saint-Denis
Republic of Moldova, Ontario and Limburg have greater number of administrative territories or still waterss as their namesake than Corse
Republic of Moldova Ontario Limburg
action greater
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type still waters
action count
action filter_multi_types
action find
entity Corse
relation named after
type designation for an administrative territorial entity
type still waters
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { resource:Corse property:named_after ?r . { { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?r rdf:type ontology:still_waters } } } } . FILTER ( ?g > ?b ) . { SELECT DISTINCT ?u ( COUNT ( ?l ) AS ?g ) WHERE { { ?u property:named_after ?l . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?u property:named_after ?l . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:still_waters } } GROUP BY ?u } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q12808
P138
Q15617994 Q337567 Q15617994
USER
And also tell me about Haute-Vienne?
(c(Q15617994),P138,c(Q15617994)|c(Q337567))
action greater
action union
action find_tuple_counts
relation P138
type Q15617994
type Q15617994
action find_tuple_counts
relation P138
type Q15617994
type Q337567
action count
action filter_multi_types
action find
entity Q12808
relation P138
type Q15617994
type Q337567
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?d ) WHERE { VALUES ( ?o ) { ( ontology:Q15617994 ) ( ontology:Q337567 ) } . ?x rdf:type ?o } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { resource:Q12808 property:P138 ?m . { { ?m rdf:type ontology:Q337567 } UNION { ?m rdf:type ontology:Q15617994 } } } } . FILTER ( ?d > ?t ) }
Haute-Vienne
action greater
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type still waters
action count
action filter_multi_types
action find
entity Haute-Vienne
relation named after
type designation for an administrative territorial entity
type still waters
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?d ) WHERE { VALUES ( ?o ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:still_waters ) } . ?x rdf:type ?o } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { resource:Haute-Vienne property:named_after ?m . { { ?m rdf:type ontology:still_waters } UNION { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?d > ?t ) }
[]
designation for an administrative territorial entity still waters designation for an administrative territorial entity
Q217 Q1904 Q1093
SYSTEM
Republic of Moldova, Ontario, Limburg
Q707 Q1093 Q625403 Q691368 Q1904 Q1101 Q1788988 Q217 Q12761
(c(Q15617994),P138,c(Q15617994)|c(Q337567))
action greater
action union
action find_tuple_counts
relation P138
type Q15617994
type Q15617994
action find_tuple_counts
relation P138
type Q15617994
type Q337567
action count
action filter_multi_types
action find
entity Q12808
relation P138
type Q15617994
type Q337567
[ANSWERS]
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?d ) WHERE { VALUES ( ?o ) { ( ontology:Q15617994 ) ( ontology:Q337567 ) } . ?x rdf:type ?o } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { resource:Q12808 property:P138 ?m . { { ?m rdf:type ontology:Q337567 } UNION { ?m rdf:type ontology:Q15617994 } } } } . FILTER ( ?d > ?t ) }
Flevoland Limburg Schwielowsee Léman Ontario North Brabant Trasimène Republic of Moldova Seine-Saint-Denis
Republic of Moldova Ontario Limburg
action greater
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type still waters
action count
action filter_multi_types
action find
entity Haute-Vienne
relation named after
type designation for an administrative territorial entity
type still waters
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?d ) WHERE { VALUES ( ?o ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:still_waters ) } . ?x rdf:type ?o } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { resource:Haute-Vienne property:named_after ?m . { { ?m rdf:type ontology:still_waters } UNION { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?d > ?t ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q15617994
USER
How many administrative territories have an adjacent border with that administrative territory ?
(c(Q15617994),P47,Q1093)
[{'concept': 'Q15617994'}, 'P47', 'Q1093']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q1161 . ?z rdf:type ontology:Q15617994 }
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Limburg']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Limburg . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q1093
SYSTEM
Did you mean Limburg ?
(c(Q15617994),P47,Q217) (c(Q15617994),P47,Q1904) (c(Q15617994),P47,Q1093)
[ANSWER]
[{'concept': 'Q15617994'}, 'P47', 'Q217'] [{'concept': 'Q15617994'}, 'P47', 'Q1904'] [{'concept': 'Q15617994'}, 'P47', 'Q1093']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q1161 . ?z rdf:type ontology:Q15617994 }
Did you mean Limburg ?
Limburg
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Republic of Moldova'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Ontario'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Limburg']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Limburg . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q15617994),P47,Q1093)
[{'concept': 'Q15617994'}, 'P47', 'Q1093']
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Limburg']
[]
SYSTEM
2
Q775 Q1101
(c(Q15617994),P47,Q1093)
[ANSWER]
[{'concept': 'Q15617994'}, 'P47', 'Q1093']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q1161 . ?z rdf:type ontology:Q15617994 }
Gelderland North Brabant
2
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Limburg']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Limburg . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q217
P85
Q484692
USER
What is the national anthem of Republic of Moldova ?
(Q217,P85,c(Q484692))
action filter_type
action find
entity Q217
relation P85
type Q484692
['Q217', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?b WHERE { resource:Q217 property:P85 ?b . ?b rdf:type ontology:Q484692 }
Republic of Moldova
action filter_type
action find
entity Republic of Moldova
relation anthem
type hymn
['Republic of Moldova', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?b WHERE { resource:Republic_of_Moldova property:anthem ?b . ?b rdf:type ontology:hymn }
[]
hymn
Q242744
SYSTEM
Limba noastră
Q242744
(Q217,P85,c(Q484692))
action filter_type
action find
entity Q217
relation P85
type Q484692
The national anthem of Republic of Moldova is the [ANSWER]
['Q217', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?b WHERE { resource:Q217 property:P85 ?b . ?b rdf:type ontology:Q484692 }
Limba noastră
The national anthem of Republic of Moldova is the Limba noastră
Limba noastră
action filter_type
action find
entity Republic of Moldova
relation anthem
type hymn
['Republic of Moldova', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?b WHERE { resource:Republic_of_Moldova property:anthem ?b . ?b rdf:type ontology:hymn }
[]