Simple Question (Direct)
Simple Question
Q85814
P937
Q56061
USER
Where did Wilhelm Murr work ?
(Q85814,P937,c(Q56061))
action filter_type
action find
entity Q85814
relation P937
type Q56061
['Q85814', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q85814 property:P937 ?o . ?o rdf:type ontology:Q56061 }
Wilhelm Murr
action filter_type
action find
entity Wilhelm Murr
relation work location
type administrative territorial entity
['Wilhelm Murr', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Wilhelm_Murr property:work_location ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q85814,P937,c(Q56061))
action filter_type
action find
entity Q85814
relation P937
type Q56061
Wilhelm Murr worked in [ANSWER]
['Q85814', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q85814 property:P937 ?o . ?o rdf:type ontology:Q56061 }
Berlin
Wilhelm Murr worked in Berlin
Berlin
action filter_type
action find
entity Wilhelm Murr
relation work location
type administrative territorial entity
['Wilhelm Murr', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Wilhelm_Murr property:work_location ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q85814
P27
Q1048835
USER
Which political territory is that person a civilian of ?
(Q64,P27,c(Q1048835))
action filter_type
action find
entity Q85814
relation P27
type Q1048835
['Q64', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q85814 property:P27 ?f . ?f rdf:type ontology:Q1048835 }
Wilhelm Murr
action filter_type
action find
entity Wilhelm Murr
relation country of citizenship
type political territorial entity
['Berlin', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Wilhelm_Murr property:country_of_citizenship ?f . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q64,P27,c(Q1048835))
action filter_type
action find
entity Q85814
relation P27
type Q1048835
[ANSWER] is that person a civilian of
['Q64', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q85814 property:P27 ?f . ?f rdf:type ontology:Q1048835 }
Germany
Germany is that person a civilian of
Germany
action filter_type
action find
entity Wilhelm Murr
relation country of citizenship
type political territorial entity
['Berlin', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Wilhelm_Murr property:country_of_citizenship ?f . ?f rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P1427
Q1048835 Q2912397
USER
How many political territories gives the origination point of more number of single-day races than that political territory ?
(c(Q2912397),P1427,c(Q1048835))
action count
action greater
action find_reverse_tuple_counts
relation P1427
type Q1048835
type Q2912397
action count
action filter_type
action find
entity Q183
relation P1427
type Q1048835
[{'concept': 'Q2912397'}, 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?h ) AS ?c ) WHERE { ?h property:P1427 ?l . ?l rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q2912397 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { ?k rdf:type ontology:Q1048835 . resource:Q183 property:P1427 ?k } } . FILTER ( ?c > ?m ) }
action count
action greater
action find_reverse_tuple_counts
relation start point
type political territorial entity
type single-day race
action count
action filter_type
action find
entity Germany
relation start point
type political territorial entity
[{'concept': 'single-day race'}, 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?h ) AS ?c ) WHERE { ?h property:start_point ?l . ?l rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:single-day_race } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { ?k rdf:type ontology:political_territorial_entity . resource:Germany property:start_point ?k } } . FILTER ( ?c > ?m ) }
[]
political territorial entity single-day race
SYSTEM
2
Q492420 Q672483
(c(Q2912397),P1427,c(Q1048835))
action count
action greater
action find_reverse_tuple_counts
relation P1427
type Q1048835
type Q2912397
action count
action filter_type
action find
entity Q183
relation P1427
type Q1048835
[ANSWER]
[{'concept': 'Q2912397'}, 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?h ) AS ?c ) WHERE { ?h property:P1427 ?l . ?l rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q2912397 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { ?k rdf:type ontology:Q1048835 . resource:Q183 property:P1427 ?k } } . FILTER ( ?c > ?m ) }
Getxo Ordizia
2
action count
action greater
action find_reverse_tuple_counts
relation start point
type political territorial entity
type single-day race
action count
action filter_type
action find
entity Germany
relation start point
type political territorial entity
[{'concept': 'single-day race'}, 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?h ) AS ?c ) WHERE { ?h property:start_point ?l . ?l rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:single-day_race } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { ?k rdf:type ontology:political_territorial_entity . resource:Germany property:start_point ?k } } . FILTER ( ?c > ?m ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q778
P495
Q1048835 Q2031291 Q838948
USER
Which political territories are the origins of around the same number of releases and works of art as The Bahamas ?
(c(Q2031291)|c(Q838948),P495,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2031291
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q778
relation P495
type Q2031291
type Q838948
[[{'concept': 'Q2031291'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u property:P495 resource:Q778 . { { ?u rdf:type ontology:Q2031291 } UNION { ?u rdf:type ontology:Q838948 } } } } . FILTER ( ?i = ?c ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) ?l WHERE { { ?b property:P495 ?l . ?l rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q2031291 } UNION { ?l rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q838948 . ?b property:P495 ?l } } GROUP BY ?l } }
The Bahamas
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type release
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity The Bahamas
relation country of origin
type release
type work of art
[[{'concept': 'release'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u property:country_of_origin resource:The_Bahamas . { { ?u rdf:type ontology:release } UNION { ?u rdf:type ontology:work_of_art } } } } . FILTER ( ?i = ?c ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) ?l WHERE { { ?b property:country_of_origin ?l . ?l rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:release } UNION { ?l rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:work_of_art . ?b property:country_of_origin ?l } } GROUP BY ?l } }
[]
political territorial entity release work of art
Q35 Q40 Q5705
SYSTEM
Denmark, Austria, Catalonia
Q1000 Q1747689 Q838261 Q769 Q763 Q664 Q766 Q1054923 Q13353 Q781 Q5705 Q1823 Q35 Q407199 Q778 Q691 Q234 Q2991382 Q40 Q9337 Q23635 Q31747 Q129286
(c(Q2031291)|c(Q838948),P495,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2031291
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q778
relation P495
type Q2031291
type Q838948
[ANSWERS] are the origins of around the same number of releases and works of art as The Bahamas
[[{'concept': 'Q2031291'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u property:P495 resource:Q778 . { { ?u rdf:type ontology:Q2031291 } UNION { ?u rdf:type ontology:Q838948 } } } } . FILTER ( ?i = ?c ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) ?l WHERE { { ?b property:P495 ?l . ?l rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q2031291 } UNION { ?l rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q838948 . ?b property:P495 ?l } } GROUP BY ?l } }
Gabon Ancient Rome Federal Republic of Yugoslavia Grenada Saint Kitts and Nevis New Zealand Jamaica British Hong Kong Montserrat Antigua and Barbuda Catalonia Aceh Denmark Palestinian territories The Bahamas Papua New Guinea Flemish Region County of Provence Austria Flemish Region Bermuda Irish Free State British Raj
Denmark, Austria and Catalonia are the origins of around the same number of releases and works of art as The Bahamas
Denmark Austria Catalonia
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type release
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity The Bahamas
relation country of origin
type release
type work of art
[[{'concept': 'release'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u property:country_of_origin resource:The_Bahamas . { { ?u rdf:type ontology:release } UNION { ?u rdf:type ontology:work_of_art } } } } . FILTER ( ?i = ?c ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) ?l WHERE { { ?b property:country_of_origin ?l . ?l rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:release } UNION { ?l rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:work_of_art . ?b property:country_of_origin ?l } } GROUP BY ?l } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P710
Q198
USER
Which wars were Germany a participant of ?
(c(Q198),P710,Q183)
action filter_type
action find_reverse
entity Q183
relation P710
type Q198
[{'concept': 'Q198'}, 'P710', 'Q183']
SELECT DISTINCT ?j WHERE { ?j property:P710 resource:Q183 . ?j rdf:type ontology:Q198 }
Germany
action filter_type
action find_reverse
entity Germany
relation participant
type war
[{'concept': 'war'}, 'participant', 'Germany']
SELECT DISTINCT ?j WHERE { ?j property:participant resource:Germany . ?j rdf:type ontology:war }
[]
war
Q362 Q361
SYSTEM
World War II, World War I
Q362 Q361
(c(Q198),P710,Q183)
action filter_type
action find_reverse
entity Q183
relation P710
type Q198
[ANSWERS]
[{'concept': 'Q198'}, 'P710', 'Q183']
SELECT DISTINCT ?j WHERE { ?j property:P710 resource:Q183 . ?j rdf:type ontology:Q198 }
World War II World War I
Which wars were Germany a participant of
World War II World War I
action filter_type
action find_reverse
entity Germany
relation participant
type war
[{'concept': 'war'}, 'participant', 'Germany']
SELECT DISTINCT ?j WHERE { ?j property:participant resource:Germany . ?j rdf:type ontology:war }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P36
Q56061
USER
Which administrative territories are the capitals of Germany ?
(Q183,P36,c(Q56061))
action filter_type
action find
entity Q183
relation P36
type Q56061
['Q183', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q183 property:P36 ?t . ?t rdf:type ontology:Q56061 }
Germany
action filter_type
action find
entity Germany
relation capital
type administrative territorial entity
['Germany', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Germany property:capital ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64 Q586
SYSTEM
Berlin, Bonn
Q64 Q586
(Q183,P36,c(Q56061))
action filter_type
action find
entity Q183
relation P36
type Q56061
[ANSWERS] are the capitals of Germany
['Q183', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q183 property:P36 ?t . ?t rdf:type ontology:Q56061 }
Berlin Bonn
Berlin and Bonn are the capitals of Germany
Berlin Bonn
action filter_type
action find
entity Germany
relation capital
type administrative territorial entity
['Germany', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Germany property:capital ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1028493
Q56061
USER
And also tell me about Guaminí Partido?
(Q1028493,P36,c(Q56061))
action filter_type
action find
entity Q1028493
relation P36
type Q56061
['Q1028493', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q56061 . resource:Q1028493 property:P36 ?j }
Guaminí Partido
action filter_type
action find
entity Guaminí Partido
relation capital
type administrative territorial entity
['Guaminí Partido', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:administrative_territorial_entity . resource:Guaminí_Partido property:capital ?j }
[]
administrative territorial entity
Q1973966
SYSTEM
Guaminí
Q1973966
(Q1028493,P36,c(Q56061))
action filter_type
action find
entity Q1028493
relation P36
type Q56061
[ANSWER]
['Q1028493', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q56061 . resource:Q1028493 property:P36 ?j }
Guaminí
Guaminí
action filter_type
action find
entity Guaminí Partido
relation capital
type administrative territorial entity
['Guaminí Partido', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:administrative_territorial_entity . resource:Guaminí_Partido property:capital ?j }
[]