Simple Question (Direct)
Simple Question
Q986622
P106
Q12737077
USER
Which occupations are the professions of Brian O'Leary ?
(Q986622,P106,c(Q12737077))
action filter_type
action find
entity Q986622
relation P106
type Q12737077
['Q986622', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q986622 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
Brian O'Leary
action filter_type
action find
entity Brian O'Leary
relation occupation
type occupation
["Brian O'Leary", 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Brian_O'Leary property:occupation ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q11631 Q8246794 Q11063
SYSTEM
astronaut, blogger, astronomer
Q11631 Q8246794 Q11063 Q901
(Q986622,P106,c(Q12737077))
action filter_type
action find
entity Q986622
relation P106
type Q12737077
The professions of Brian O'Leary are [ANSWERS]
['Q986622', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q986622 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
astronaut blogger astronomer scientist
The professions of Brian O'Leary are astronaut, blogger and astronomer
astronaut blogger astronomer
action filter_type
action find
entity Brian O'Leary
relation occupation
type occupation
["Brian O'Leary", 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Brian_O'Leary property:occupation ?u . ?u rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11631
P425
Q1656682
USER
Which event has astronaut as the associated field of occupation ?
(Q11631,P425,c(Q1656682))
action filter_type
action find
entity Q11631
relation P425
type Q1656682
['Q11631', 'P425', {'concept': 'Q1656682'}]
SELECT DISTINCT ?t WHERE { resource:Q11631 property:P425 ?t . ?t rdf:type ontology:Q1656682 }
astronaut
action filter_type
action find
entity astronaut
relation field of this occupation
type event
['astronaut', 'field of this occupation', {'concept': 'event'}]
SELECT DISTINCT ?t WHERE { resource:astronaut property:field_of_this_occupation ?t . ?t rdf:type ontology:event }
[]
event
Q752783
SYSTEM
human spaceflight
Q752783
(Q11631,P425,c(Q1656682))
action filter_type
action find
entity Q11631
relation P425
type Q1656682
[ANSWER] has astronaut as the associated field of occupation
['Q11631', 'P425', {'concept': 'Q1656682'}]
SELECT DISTINCT ?t WHERE { resource:Q11631 property:P425 ?t . ?t rdf:type ontology:Q1656682 }
human spaceflight
Human spaceflight has astronaut as the associated field of occupation
human spaceflight
action filter_type
action find
entity astronaut
relation field of this occupation
type event
['astronaut', 'field of this occupation', {'concept': 'event'}]
SELECT DISTINCT ?t WHERE { resource:astronaut property:field_of_this_occupation ?t . ?t rdf:type ontology:event }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11063
P180
Q11060274
USER
Which print expresses astronomer ?
(c(Q11060274),P180,Q11063)
action filter_type
action find_reverse
entity Q11063
relation P180
type Q11060274
[{'concept': 'Q11060274'}, 'P180', 'Q11063']
SELECT DISTINCT ?y WHERE { ?y property:P180 resource:Q11063 . ?y rdf:type ontology:Q11060274 }
astronomer
action filter_type
action find_reverse
entity astronomer
relation depicts
type print
[{'concept': 'print'}, 'depicts', 'astronomer']
SELECT DISTINCT ?y WHERE { ?y property:depicts resource:astronomer . ?y rdf:type ontology:print }
[]
print
Q18339645
SYSTEM
Astronomer
Q18339645
(c(Q11060274),P180,Q11063)
action filter_type
action find_reverse
entity Q11063
relation P180
type Q11060274
[ANSWER] expresses astronomer
[{'concept': 'Q11060274'}, 'P180', 'Q11063']
SELECT DISTINCT ?y WHERE { ?y property:P180 resource:Q11063 . ?y rdf:type ontology:Q11060274 }
Astronomer
Astronomer expresses astronomer
Astronomer
action filter_type
action find_reverse
entity astronomer
relation depicts
type print
[{'concept': 'print'}, 'depicts', 'astronomer']
SELECT DISTINCT ?y WHERE { ?y property:depicts resource:astronomer . ?y rdf:type ontology:print }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18339645
P170
Q502895
USER
Who created that print ?
(Q18339645,P170,c(Q502895))
action filter_type
action find
entity Q18339645
relation P170
type Q502895
['Q18339645', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q18339645 property:P170 ?t . ?t rdf:type ontology:Q502895 }
Astronomer
action filter_type
action find
entity Astronomer
relation creator
type common name
['Astronomer', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Astronomer property:creator ?t . ?t rdf:type ontology:common_name }
[]
common name
Q5580
SYSTEM
Albrecht Dürer
Q5580
(Q18339645,P170,c(Q502895))
action filter_type
action find
entity Q18339645
relation P170
type Q502895
[ANSWER] created that print
['Q18339645', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q18339645 property:P170 ?t . ?t rdf:type ontology:Q502895 }
Albrecht Dürer
Albrecht Dürer created that print
Albrecht Dürer
action filter_type
action find
entity Astronomer
relation creator
type common name
['Astronomer', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Astronomer property:creator ?t . ?t rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19328870 Q5580
P276 P551
Q56061
USER
Which administrative territories did Albrecht Dürer live or are the locations of Lobeliastraat ?
OR((Q5580,P551,c(Q56061)), (Q19328870,P276,c(Q56061)))
action filter_type
action union
action find
entity Q5580
relation P551
action find
entity Q19328870
relation P276
type Q56061
{'OR': [['Q5580', 'P551', {'concept': 'Q56061'}], ['Q19328870', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q5580 property:P551 ?q } UNION { resource:Q19328870 property:P276 ?q } } . ?q rdf:type ontology:Q56061 }
Lobeliastraat Albrecht Dürer
action filter_type
action union
action find
entity Albrecht Dürer
relation residence
action find
entity Lobeliastraat
relation location
type administrative territorial entity
{'OR': [['Albrecht Dürer', 'residence', {'concept': 'administrative territorial entity'}], ['Lobeliastraat', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Albrecht_Dürer property:residence ?q } UNION { resource:Lobeliastraat property:location ?q } } . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q12557060 Q641 Q2090
SYSTEM
Veghel, Venice, Nuremberg
Q12557060 Q641 Q2090
OR((Q5580,P551,c(Q56061)), (Q19328870,P276,c(Q56061)))
action filter_type
action union
action find
entity Q5580
relation P551
action find
entity Q19328870
relation P276
type Q56061
Albrecht Dürer lived in [ANSWERS] or are the locations of Lobeliastraat
{'OR': [['Q5580', 'P551', {'concept': 'Q56061'}], ['Q19328870', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q5580 property:P551 ?q } UNION { resource:Q19328870 property:P276 ?q } } . ?q rdf:type ontology:Q56061 }
Veghel Venice Nuremberg
Albrecht Dürer lived in Veghel, Venice and Nuremberg or are the locations of Lobeliastraat
Veghel Venice Nuremberg
action filter_type
action union
action find
entity Albrecht Dürer
relation residence
action find
entity Lobeliastraat
relation location
type administrative territorial entity
{'OR': [['Albrecht Dürer', 'residence', {'concept': 'administrative territorial entity'}], ['Lobeliastraat', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Albrecht_Dürer property:residence ?q } UNION { resource:Lobeliastraat property:location ?q } } . ?q rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P532
Q56061 Q2235308
USER
Which ship types have max number of administrative territories as their base harbour ?
(c(Q2235308),P532,c(Q56061))
action argmax
action find_tuple_counts
relation P532
type Q2235308
type Q56061
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?j ) { SELECT DISTINCT ?f ( COUNT ( ?d ) AS ?i ) WHERE { ?f property:P532 ?d . ?f rdf:type ontology:Q2235308 . ?d rdf:type ontology:Q56061 } GROUP BY ?f } } . FILTER ( ?n = ?j ) . { SELECT DISTINCT ?a ( COUNT ( ?y ) AS ?n ) WHERE { ?a rdf:type ontology:Q2235308 . ?y rdf:type ontology:Q56061 . ?a property:P532 ?y } GROUP BY ?a } }
action argmax
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?j ) { SELECT DISTINCT ?f ( COUNT ( ?d ) AS ?i ) WHERE { ?f property:port_of_registry ?d . ?f rdf:type ontology:ship_type . ?d rdf:type ontology:administrative_territorial_entity } GROUP BY ?f } } . FILTER ( ?n = ?j ) . { SELECT DISTINCT ?a ( COUNT ( ?y ) AS ?n ) WHERE { ?a rdf:type ontology:ship_type . ?y rdf:type ontology:administrative_territorial_entity . ?a property:port_of_registry ?y } GROUP BY ?a } }
[]
administrative territorial entity ship type
Q11707059
SYSTEM
MS Arrow
Q11707059
(c(Q2235308),P532,c(Q56061))
action argmax
action find_tuple_counts
relation P532
type Q2235308
type Q56061
[ANSWER] have max number of administrative territories as their base harbour
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?j ) { SELECT DISTINCT ?f ( COUNT ( ?d ) AS ?i ) WHERE { ?f property:P532 ?d . ?f rdf:type ontology:Q2235308 . ?d rdf:type ontology:Q56061 } GROUP BY ?f } } . FILTER ( ?n = ?j ) . { SELECT DISTINCT ?a ( COUNT ( ?y ) AS ?n ) WHERE { ?a rdf:type ontology:Q2235308 . ?y rdf:type ontology:Q56061 . ?a property:P532 ?y } GROUP BY ?a } }
MS Arrow
MS Arrow have max number of administrative territories as their base harbour
MS Arrow
action argmax
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?j ) { SELECT DISTINCT ?f ( COUNT ( ?d ) AS ?i ) WHERE { ?f property:port_of_registry ?d . ?f rdf:type ontology:ship_type . ?d rdf:type ontology:administrative_territorial_entity } GROUP BY ?f } } . FILTER ( ?n = ?j ) . { SELECT DISTINCT ?a ( COUNT ( ?y ) AS ?n ) WHERE { ?a rdf:type ontology:ship_type . ?y rdf:type ontology:administrative_territorial_entity . ?a property:port_of_registry ?y } GROUP BY ?a } }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q11707059 Q719690 Q2631684
P532
Q56061
USER
Is that ship type the registry port of Piatra Roșie Dacian fortress and Chirakchi ?
(Q11707059,P532,Q719690) (Q11707059,P532,Q2631684)
action is_in
entity Q11707059
action intersection
action find_reverse
entity Q719690
relation P532
action find_reverse
entity Q2631684
relation P532
['Q11707059', 'P532', 'Q719690'] ['Q11707059', 'P532', 'Q2631684']
ASK WHERE { resource:Q11707059 property:P532 resource:Q2631684 . resource:Q11707059 property:P532 resource:Q719690 }
MS Arrow Piatra Roșie Dacian fortress Chirakchi
action is_in
entity MS Arrow
action intersection
action find_reverse
entity Piatra Roșie Dacian fortress
relation port of registry
action find_reverse
entity Chirakchi
relation port of registry
['MS Arrow', 'port of registry', 'Piatra Roșie Dacian fortress'] ['MS Arrow', 'port of registry', 'Chirakchi']
ASK WHERE { resource:MS_Arrow property:port_of_registry resource:Chirakchi . resource:MS_Arrow property:port_of_registry resource:Piatra_Roșie_Dacian_fortress }
[]
administrative territorial entity
SYSTEM
NO
(Q11707059,P532,Q719690) (Q11707059,P532,Q2631684)
action is_in
entity Q11707059
action intersection
action find_reverse
entity Q719690
relation P532
action find_reverse
entity Q2631684
relation P532
[ANSWER]
['Q11707059', 'P532', 'Q719690'] ['Q11707059', 'P532', 'Q2631684']
ASK WHERE { resource:Q11707059 property:P532 resource:Q2631684 . resource:Q11707059 property:P532 resource:Q719690 }
No
action is_in
entity MS Arrow
action intersection
action find_reverse
entity Piatra Roșie Dacian fortress
relation port of registry
action find_reverse
entity Chirakchi
relation port of registry
['MS Arrow', 'port of registry', 'Piatra Roșie Dacian fortress'] ['MS Arrow', 'port of registry', 'Chirakchi']
ASK WHERE { resource:MS_Arrow property:port_of_registry resource:Chirakchi . resource:MS_Arrow property:port_of_registry resource:Piatra_Roșie_Dacian_fortress }
[]