Simple Question (Direct)
Simple Question
Q782832
P1066
Q502895
USER
Which person was the professor of Carlo Alfredo Piatti ?
(Q782832,P1066,c(Q502895))
action filter_type
action find
entity Q782832
relation P1066
type Q502895
['Q782832', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q782832 property:P1066 ?o . ?o rdf:type ontology:Q502895 }
Carlo Alfredo Piatti
action filter_type
action find
entity Carlo Alfredo Piatti
relation student of
type common name
['Carlo Alfredo Piatti', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Carlo_Alfredo_Piatti property:student_of ?o . ?o rdf:type ontology:common_name }
[]
common name
Q571562
SYSTEM
Bernhard Molique
Q571562
(Q782832,P1066,c(Q502895))
action filter_type
action find
entity Q782832
relation P1066
type Q502895
[ANSWER] was the professor of Carlo Alfredo Piatti
['Q782832', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q782832 property:P1066 ?o . ?o rdf:type ontology:Q502895 }
Bernhard Molique
Bernhard Molique was the professor of Carlo Alfredo Piatti
Bernhard Molique
action filter_type
action find
entity Carlo Alfredo Piatti
relation student of
type common name
['Carlo Alfredo Piatti', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Carlo_Alfredo_Piatti property:student_of ?o . ?o rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5300876 Q782832
P19 P20
Q56061
USER
Which administrative territories are the birthplace of Carlo Alfredo Piatti or did Doug Rowe expire ?
OR((Q782832,P19,c(Q56061)), (Q5300876,P20,c(Q56061)))
action filter_type
action union
action find
entity Q782832
relation P19
action find
entity Q5300876
relation P20
type Q56061
{'OR': [['Q782832', 'P19', {'concept': 'Q56061'}], ['Q5300876', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q782832 property:P19 ?o } UNION { resource:Q5300876 property:P20 ?o } } . ?o rdf:type ontology:Q56061 }
Doug Rowe Carlo Alfredo Piatti
action filter_type
action union
action find
entity Carlo Alfredo Piatti
relation place of birth
action find
entity Doug Rowe
relation place of death
type administrative territorial entity
{'OR': [['Carlo Alfredo Piatti', 'place of birth', {'concept': 'administrative territorial entity'}], ['Doug Rowe', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Carlo_Alfredo_Piatti property:place_of_birth ?o } UNION { resource:Doug_Rowe property:place_of_death ?o } } . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q628 Q179406
SYSTEM
Bergamo, Grimsby
Q628 Q179406
OR((Q782832,P19,c(Q56061)), (Q5300876,P20,c(Q56061)))
action filter_type
action union
action find
entity Q782832
relation P19
action find
entity Q5300876
relation P20
type Q56061
[ANSWERS] are the birthplace of Carlo Alfredo Piatti or did Doug Rowe expire
{'OR': [['Q782832', 'P19', {'concept': 'Q56061'}], ['Q5300876', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q782832 property:P19 ?o } UNION { resource:Q5300876 property:P20 ?o } } . ?o rdf:type ontology:Q56061 }
Bergamo Grimsby
Bergamo and Grimsby are the birthplace of Carlo Alfredo Piatti or did Doug Rowe expire
Bergamo Grimsby
action filter_type
action union
action find
entity Carlo Alfredo Piatti
relation place of birth
action find
entity Doug Rowe
relation place of death
type administrative territorial entity
{'OR': [['Carlo Alfredo Piatti', 'place of birth', {'concept': 'administrative territorial entity'}], ['Doug Rowe', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Carlo_Alfredo_Piatti property:place_of_birth ?o } UNION { resource:Doug_Rowe property:place_of_death ?o } } . ?o rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q571562
P136
Q15198957
USER
Which aspect of music can be considered as genre of Bernhard Molique ?
(Q571562,P136,c(Q15198957))
action filter_type
action find
entity Q571562
relation P136
type Q15198957
['Q571562', 'P136', {'concept': 'Q15198957'}]
SELECT DISTINCT ?l WHERE { resource:Q571562 property:P136 ?l . ?l rdf:type ontology:Q15198957 }
Bernhard Molique
action filter_type
action find
entity Bernhard Molique
relation genre
type aspect of music
['Bernhard Molique', 'genre', {'concept': 'aspect of music'}]
SELECT DISTINCT ?l WHERE { resource:Bernhard_Molique property:genre ?l . ?l rdf:type ontology:aspect_of_music }
[]
aspect of music
Q9734
SYSTEM
symphony
Q9734
(Q571562,P136,c(Q15198957))
action filter_type
action find
entity Q571562
relation P136
type Q15198957
[ANSWER] can be considered as genre of Bernhard Molique
['Q571562', 'P136', {'concept': 'Q15198957'}]
SELECT DISTINCT ?l WHERE { resource:Q571562 property:P136 ?l . ?l rdf:type ontology:Q15198957 }
symphony
Symphony can be considered as genre of Bernhard Molique
symphony
action filter_type
action find
entity Bernhard Molique
relation genre
type aspect of music
['Bernhard Molique', 'genre', {'concept': 'aspect of music'}]
SELECT DISTINCT ?l WHERE { resource:Bernhard_Molique property:genre ?l . ?l rdf:type ontology:aspect_of_music }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P532
Q56061 Q2235308
USER
Which ship types are the registry port of approximately 3 administrative territories ?
(c(Q2235308),P532,c(Q56061))
action approx
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 3
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { FILTER ( ?p = 3 ) . { SELECT DISTINCT ?u ( COUNT ( ?o ) AS ?p ) WHERE { ?u property:P532 ?o . ?o rdf:type ontology:Q56061 . ?u rdf:type ontology:Q2235308 } GROUP BY ?u } }
action approx
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 3
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { FILTER ( ?p = 3 ) . { SELECT DISTINCT ?u ( COUNT ( ?o ) AS ?p ) WHERE { ?u property:port_of_registry ?o . ?o rdf:type ontology:administrative_territorial_entity . ?u rdf:type ontology:ship_type } GROUP BY ?u } }
[]
administrative territorial entity ship type
Q11707059
SYSTEM
MS Arrow
Q11707059
(c(Q2235308),P532,c(Q56061))
action approx
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 3
[ANSWER] is the registry port of approximately 3 administrative territories
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { FILTER ( ?p = 3 ) . { SELECT DISTINCT ?u ( COUNT ( ?o ) AS ?p ) WHERE { ?u property:P532 ?o . ?o rdf:type ontology:Q56061 . ?u rdf:type ontology:Q2235308 } GROUP BY ?u } }
MS Arrow
MS Arrow is the registry port of approximately 3 administrative territories
MS Arrow
action approx
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 3
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { FILTER ( ?p = 3 ) . { SELECT DISTINCT ?u ( COUNT ( ?o ) AS ?p ) WHERE { ?u property:port_of_registry ?o . ?o rdf:type ontology:administrative_territorial_entity . ?u rdf:type ontology:ship_type } GROUP BY ?u } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q12173630
P138
Q2235308 Q15324
USER
How many bodies of water have greater number of ship types as their namesake than Gulf of Yalta ?
(c(Q15324),P138,c(Q2235308))
action count
action greater
action find_tuple_counts
relation P138
type Q15324
type Q2235308
action count
action filter_type
action find
entity Q12173630
relation P138
type Q15324
[{'concept': 'Q15324'}, 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?v ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?o ) WHERE { ?w property:P138 ?x . ?x rdf:type ontology:Q2235308 . ?w rdf:type ontology:Q15324 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { resource:Q12173630 property:P138 ?c . ?c rdf:type ontology:Q15324 } } . FILTER ( ?o > ?l ) }
Gulf of Yalta
action count
action greater
action find_tuple_counts
relation named after
type body of water
type ship type
action count
action filter_type
action find
entity Gulf of Yalta
relation named after
type body of water
[{'concept': 'body of water'}, 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?v ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?o ) WHERE { ?w property:named_after ?x . ?x rdf:type ontology:ship_type . ?w rdf:type ontology:body_of_water } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { resource:Gulf_of_Yalta property:named_after ?c . ?c rdf:type ontology:body_of_water } } . FILTER ( ?o > ?l ) }
[]
ship type body of water
SYSTEM
5
Q3108304 Q1655368 Q141061 Q23906 Q812911
(c(Q15324),P138,c(Q2235308))
action count
action greater
action find_tuple_counts
relation P138
type Q15324
type Q2235308
action count
action filter_type
action find
entity Q12173630
relation P138
type Q15324
[ANSWER]
[{'concept': 'Q15324'}, 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?v ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?o ) WHERE { ?w property:P138 ?x . ?x rdf:type ontology:Q2235308 . ?w rdf:type ontology:Q15324 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { resource:Q12173630 property:P138 ?c . ?c rdf:type ontology:Q15324 } } . FILTER ( ?o > ?l ) }
Nimrod Glacier Bounty Bay Erebus and Terror Gulf Merrick Glacier Beagle Gulf
5
action count
action greater
action find_tuple_counts
relation named after
type body of water
type ship type
action count
action filter_type
action find
entity Gulf of Yalta
relation named after
type body of water
[{'concept': 'body of water'}, 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?v ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?o ) WHERE { ?w property:named_after ?x . ?x rdf:type ontology:ship_type . ?w rdf:type ontology:body_of_water } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { resource:Gulf_of_Yalta property:named_after ?c . ?c rdf:type ontology:body_of_water } } . FILTER ( ?o > ?l ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P532
Q15700808 Q2235308
USER
Which urban unit definitions have approximately 1 ship type as their port of registry ?
(c(Q2235308),P532,c(Q15700808))
action approx
action find_reverse_tuple_counts
relation P532
type Q15700808
type Q2235308
value 1
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q15700808'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?p ) AS ?w ) WHERE { ?p property:P532 ?o . ?o rdf:type ontology:Q15700808 . ?p rdf:type ontology:Q2235308 } GROUP BY ?o } . FILTER ( ?w = 1 ) }
action approx
action find_reverse_tuple_counts
relation port of registry
type urban unit definition
type ship type
value 1
[{'concept': 'ship type'}, 'port of registry', {'concept': 'urban unit definition'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?p ) AS ?w ) WHERE { ?p property:port_of_registry ?o . ?o rdf:type ontology:urban_unit_definition . ?p rdf:type ontology:ship_type } GROUP BY ?o } . FILTER ( ?w = 1 ) }
[]
urban unit definition ship type
Q54339 Q26943 Q1001109
SYSTEM
Trollhättan, Trelleborg, Vaxholm
Q1001109 Q26943 Q2295696 Q54339 Q1478888
(c(Q2235308),P532,c(Q15700808))
action approx
action find_reverse_tuple_counts
relation P532
type Q15700808
type Q2235308
value 1
[ANSWERS] have approximately 1 ship type as their port of registry
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q15700808'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?p ) AS ?w ) WHERE { ?p property:P532 ?o . ?o rdf:type ontology:Q15700808 . ?p rdf:type ontology:Q2235308 } GROUP BY ?o } . FILTER ( ?w = 1 ) }
Vaxholm Trelleborg Smögen Trollhättan Färjestaden
Trollhättan, Trelleborg and Vaxholm have approximately 1 ship type as their port of registry
Trollhättan Trelleborg Vaxholm
action approx
action find_reverse_tuple_counts
relation port of registry
type urban unit definition
type ship type
value 1
[{'concept': 'ship type'}, 'port of registry', {'concept': 'urban unit definition'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?p ) AS ?w ) WHERE { ?p property:port_of_registry ?o . ?o rdf:type ontology:urban_unit_definition . ?p rdf:type ontology:ship_type } GROUP BY ?o } . FILTER ( ?w = 1 ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P19
Q502895
USER
How many people were born at that urban unit definition ?
(c(Q502895),P19,Q1001109)
[{'concept': 'Q502895'}, 'P19', 'Q1001109']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q1322263 resource:Q21667415 . ?z rdf:type ontology:Q502895 }
[{'concept': 'common name'}, 'place of birth', 'Vaxholm']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:place_of_birth resource:Vaxholm . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q54339
SYSTEM
Did you mean Trollhättan ?
(c(Q502895),P19,Q54339) (c(Q502895),P19,Q26943) (c(Q502895),P19,Q1001109)
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q54339'] [{'concept': 'Q502895'}, 'P19', 'Q26943'] [{'concept': 'Q502895'}, 'P19', 'Q1001109']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q1322263 resource:Q21667415 . ?z rdf:type ontology:Q502895 }
Did you mean Trollhättan ?
Trollhättan
[{'concept': 'common name'}, 'place of birth', 'Trollhättan'] [{'concept': 'common name'}, 'place of birth', 'Trelleborg'] [{'concept': 'common name'}, 'place of birth', 'Vaxholm']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:place_of_birth resource:Vaxholm . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Vaxholm. Could you tell me the answer for that?
(c(Q502895),P19,Q1001109)
Q1001109
[{'concept': 'Q502895'}, 'P19', 'Q1001109']
[{'concept': 'common name'}, 'place of birth', 'Vaxholm']
[]
SYSTEM
13
Q6243807 Q6196080 Q6033299 Q728197 Q5395189 Q23044752 Q5619064 Q5957823 Q5626679 Q5626621 Q517762 Q234373 Q4830259
(c(Q502895),P19,Q1001109)
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q1001109']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q1322263 resource:Q21667415 . ?z rdf:type ontology:Q502895 }
John Lager Karl Sundholm Torsten Palm Per Olof Sundman Ernst Wetterstrand Sven Tisell Gunnar Lager John Lindros Gösta Eriksson Göran Gillinger Ingegerd Troedsson Maria Gripe Axel Eriksson
13
[{'concept': 'common name'}, 'place of birth', 'Vaxholm']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:place_of_birth resource:Vaxholm . ?z rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q628
P190
Q56061
USER
Which administrative territories are the sister cities of Bergamo ?
(Q628,P190,c(Q56061))
action filter_type
action find
entity Q628
relation P190
type Q56061
['Q628', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q628 property:P190 ?h . ?h rdf:type ontology:Q56061 }
Bergamo
action filter_type
action find
entity Bergamo
relation sister city
type administrative territorial entity
['Bergamo', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Bergamo property:sister_city ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2288 Q44237 Q675576
SYSTEM
Tver, Mendoza, Pueblo
Q675576 Q764943 Q44236 Q44237 Q2288 Q574192
(Q628,P190,c(Q56061))
action filter_type
action find
entity Q628
relation P190
type Q56061
[ANSWERS] are the sister cities of Bergamo
['Q628', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q628 property:P190 ?h . ?h rdf:type ontology:Q56061 }
Pueblo Olkusz La Rioja Mendoza Tver Greenville
Tver, Mendoza and Pueblo are the sister cities of Bergamo
Tver Mendoza Pueblo
action filter_type
action find
entity Bergamo
relation sister city
type administrative territorial entity
['Bergamo', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Bergamo property:sister_city ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]