Simple Question (Direct)
Simple Question
Q928748
P106
Q12737077
USER
Which occupations have Yury Berezhko as his/her 's career ?
(Q928748,P106,c(Q12737077))
action filter_type
action find
entity Q928748
relation P106
type Q12737077
['Q928748', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q928748 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
Yury Berezhko
action filter_type
action find
entity Yury Berezhko
relation occupation
type occupation
['Yury Berezhko', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Yury_Berezhko property:occupation ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q17361156 Q15117302
SYSTEM
beach volleyball player, volleyball player
Q17361156 Q15117302
(Q928748,P106,c(Q12737077))
action filter_type
action find
entity Q928748
relation P106
type Q12737077
As [ANSWERS] have Yury Berezhko as his/her 's career
['Q928748', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q928748 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
beach volleyball player volleyball player
As beach volleyball player and volleyball player have Yury Berezhko as his/her 's career
beach volleyball player volleyball player
action filter_type
action find
entity Yury Berezhko
relation occupation
type occupation
['Yury Berezhko', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Yury_Berezhko property:occupation ?u . ?u rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15117302
P425
Q349
USER
Which sport has volleyball player as thier associated field of occupation ?
(Q15117302,P425,c(Q349))
action filter_type
action find
entity Q15117302
relation P425
type Q349
['Q15117302', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?e WHERE { resource:Q15117302 property:P425 ?e . ?e rdf:type ontology:Q349 }
volleyball player
action filter_type
action find
entity volleyball player
relation field of this occupation
type sport
['volleyball player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?e WHERE { resource:volleyball_player property:field_of_this_occupation ?e . ?e rdf:type ontology:sport }
[]
sport
Q1734
SYSTEM
volleyball
Q1734
(Q15117302,P425,c(Q349))
action filter_type
action find
entity Q15117302
relation P425
type Q349
The [ANSWER] has [ANSWER] player as thier associated field of occupation
['Q15117302', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?e WHERE { resource:Q15117302 property:P425 ?e . ?e rdf:type ontology:Q349 }
volleyball
The volleyball has volleyball player as thier associated field of occupation
volleyball
action filter_type
action find
entity volleyball player
relation field of this occupation
type sport
['volleyball player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?e WHERE { resource:volleyball_player property:field_of_this_occupation ?e . ?e rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q928748
P641
Q349
USER
Which sport did Yury Berezhko participate in ?
(Q928748,P641,c(Q349))
action filter_type
action find
entity Q928748
relation P641
type Q349
['Q928748', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?a WHERE { resource:Q928748 property:P641 ?a . ?a rdf:type ontology:Q349 }
Yury Berezhko
action filter_type
action find
entity Yury Berezhko
relation sport
type sport
['Yury Berezhko', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?a WHERE { resource:Yury_Berezhko property:sport ?a . ?a rdf:type ontology:sport }
[]
sport
Q1734
SYSTEM
volleyball
Q1734
(Q928748,P641,c(Q349))
action filter_type
action find
entity Q928748
relation P641
type Q349
Yury Berezhko participated in [ANSWER]
['Q928748', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?a WHERE { resource:Q928748 property:P641 ?a . ?a rdf:type ontology:Q349 }
volleyball
Yury Berezhko participated in volleyball
volleyball
action filter_type
action find
entity Yury Berezhko
relation sport
type sport
['Yury Berezhko', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?a WHERE { resource:Yury_Berezhko property:sport ?a . ?a rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1734
P19
Q502895
USER
Which person has birthplace at that sport ?
(c(Q502895),P19,Q1734)
action filter_type
action find_reverse
entity Q1734
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q1734']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . ?z property:P19 resource:Q1734 }
volleyball
action filter_type
action find_reverse
entity volleyball
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'volleyball']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . ?z property:place_of_birth resource:volleyball }
[]
common name
Q18223080
SYSTEM
Katja Mitteldorf
Q18223080
(c(Q502895),P19,Q1734)
action filter_type
action find_reverse
entity Q1734
relation P19
type Q502895
[ANSWER] has birthplace at that sport
[{'concept': 'Q502895'}, 'P19', 'Q1734']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . ?z property:P19 resource:Q1734 }
Katja Mitteldorf
Katja Mitteldorf has birthplace at that sport
Katja Mitteldorf
action filter_type
action find_reverse
entity volleyball
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'volleyball']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . ?z property:place_of_birth resource:volleyball }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18223080
P734
Q82799
USER
Who is associated with that person ?
(Q18223080,P734,c(Q82799))
action filter_type
action find
entity Q18223080
relation P734
type Q82799
['Q18223080', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?m WHERE { resource:Q18223080 property:P734 ?m . ?m rdf:type ontology:Q82799 }
Katja Mitteldorf
action filter_type
action find
entity Katja Mitteldorf
relation family name
type name
['Katja Mitteldorf', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?m WHERE { resource:Katja_Mitteldorf property:family_name ?m . ?m rdf:type ontology:name }
[]
name
Q23639019
SYSTEM
Mitteldorf
Q23639019
(Q18223080,P734,c(Q82799))
action filter_type
action find
entity Q18223080
relation P734
type Q82799
[ANSWER] is associated with that person
['Q18223080', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?m WHERE { resource:Q18223080 property:P734 ?m . ?m rdf:type ontology:Q82799 }
Mitteldorf
Mitteldorf is associated with that person
Mitteldorf
action filter_type
action find
entity Katja Mitteldorf
relation family name
type name
['Katja Mitteldorf', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?m WHERE { resource:Katja_Mitteldorf property:family_name ?m . ?m rdf:type ontology:name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q12737077 Q17638008 Q2342494
USER
How many occupations are demonstrated in atleast 1 game equipment or collectables ?
(c(Q17638008)|c(Q2342494),P180,c(Q12737077))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
value 1
[[{'concept': 'Q17638008'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { FILTER ( ?k >= 1 ) . { SELECT DISTINCT ?u ( COUNT ( ?e ) AS ?k ) WHERE { { ?e property:P180 ?u . ?e rdf:type ontology:Q17638008 . ?u rdf:type ontology:Q12737077 } UNION { ?e property:P180 ?u . ?u rdf:type ontology:Q12737077 . ?e rdf:type ontology:Q2342494 } } GROUP BY ?u } }
action count
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
value 1
[[{'concept': 'game equipment'}, {'concept': 'collectable'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { FILTER ( ?k >= 1 ) . { SELECT DISTINCT ?u ( COUNT ( ?e ) AS ?k ) WHERE { { ?e property:depicts ?u . ?e rdf:type ontology:game_equipment . ?u rdf:type ontology:occupation } UNION { ?e property:depicts ?u . ?u rdf:type ontology:occupation . ?e rdf:type ontology:collectable } } GROUP BY ?u } }
[]
occupation game equipment collectable
SYSTEM
4
Q11900058 Q12097 Q843281 Q170779
(c(Q17638008)|c(Q2342494),P180,c(Q12737077))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
value 1
[ANSWER]
[[{'concept': 'Q17638008'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { FILTER ( ?k >= 1 ) . { SELECT DISTINCT ?u ( COUNT ( ?e ) AS ?k ) WHERE { { ?e property:P180 ?u . ?e rdf:type ontology:Q17638008 . ?u rdf:type ontology:Q12737077 } UNION { ?e property:P180 ?u . ?u rdf:type ontology:Q12737077 . ?e rdf:type ontology:Q2342494 } } GROUP BY ?u } }
explorer king hobo Kassandra
4
action count
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
value 1
[[{'concept': 'game equipment'}, {'concept': 'collectable'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { FILTER ( ?k >= 1 ) . { SELECT DISTINCT ?u ( COUNT ( ?e ) AS ?k ) WHERE { { ?e property:depicts ?u . ?e rdf:type ontology:game_equipment . ?u rdf:type ontology:occupation } UNION { ?e property:depicts ?u . ?u rdf:type ontology:occupation . ?e rdf:type ontology:collectable } } GROUP BY ?u } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q12737077 Q838948 Q340169
USER
Which occupations are expressed in exactly 2 works of art and medias ?
(c(Q838948)|c(Q340169),P180,c(Q12737077))
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
value 2
[[{'concept': 'Q838948'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) ?o WHERE { { ?b property:P180 ?o . ?o rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q838948 } UNION { ?b property:P180 ?o . ?o rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q340169 } } GROUP BY ?o } . FILTER ( ?x = 2 ) }
action equal
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
action find_reverse_tuple_counts
relation depicts
type occupation
type media
value 2
[[{'concept': 'work of art'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) ?o WHERE { { ?b property:depicts ?o . ?o rdf:type ontology:occupation . ?b rdf:type ontology:work_of_art } UNION { ?b property:depicts ?o . ?o rdf:type ontology:occupation . ?b rdf:type ontology:media } } GROUP BY ?o } . FILTER ( ?x = 2 ) }
[]
occupation work of art media
Q19546 Q1028181 Q177220
SYSTEM
pope, painter, singer
Q177220 Q12902372 Q1028181 Q12059906 Q19546 Q3127709 Q1639825 Q45722 Q3128486 Q2309784 Q1281618 Q39631
(c(Q838948)|c(Q340169),P180,c(Q12737077))
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
value 2
[ANSWERS] are expressed in exactly 2 works of art and medias
[[{'concept': 'Q838948'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) ?o WHERE { { ?b property:P180 ?o . ?o rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q838948 } UNION { ?b property:P180 ?o . ?o rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q340169 } } GROUP BY ?o } . FILTER ( ?x = 2 ) }
singer flautist painter herder pope harpist blacksmith cardinal high-ranking civil servant in France sport cyclist sculptor physician
Pope, painter and singer are expressed in exactly 2 works of art and medias
pope painter singer
action equal
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
action find_reverse_tuple_counts
relation depicts
type occupation
type media
value 2
[[{'concept': 'work of art'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) ?o WHERE { { ?b property:depicts ?o . ?o rdf:type ontology:occupation . ?b rdf:type ontology:work_of_art } UNION { ?b property:depicts ?o . ?o rdf:type ontology:occupation . ?b rdf:type ontology:media } } GROUP BY ?o } . FILTER ( ?x = 2 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1028181
P417
Q502895
USER
Who is the patron saint of that occupation ?
(Q1028181,P417,c(Q502895))
action filter_type
action find
entity Q1028181
relation P417
type Q502895
['Q1028181', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q1028181 property:P417 ?m . ?m rdf:type ontology:Q502895 }
painter
action filter_type
action find
entity painter
relation patron saint
type common name
['painter', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:painter property:patron_saint ?m . ?m rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q177220
SYSTEM
Did you mean singer ?
Q19546 Q1028181 Q177220
(Q19546,P417,c(Q502895)) (Q1028181,P417,c(Q502895)) (Q177220,P417,c(Q502895))
[ANSWER]
['Q19546', 'P417', {'concept': 'Q502895'}] ['Q1028181', 'P417', {'concept': 'Q502895'}] ['Q177220', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q1028181 property:P417 ?m . ?m rdf:type ontology:Q502895 }
pope painter singer
Did you mean singer ?
singer
['pope', 'patron saint', {'concept': 'common name'}] ['painter', 'patron saint', {'concept': 'common name'}] ['singer', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:painter property:patron_saint ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant painter. Could you tell me the answer for that?
(Q1028181,P417,c(Q502895))
Q1028181
['Q1028181', 'P417', {'concept': 'Q502895'}]
['painter', 'patron saint', {'concept': 'common name'}]
[]
Q128538
SYSTEM
Luke the Evangelist
Q128538
(Q1028181,P417,c(Q502895))
action filter_type
action find
entity Q1028181
relation P417
type Q502895
The patron saint of that occupation is Saint [ANSWER]
['Q1028181', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q1028181 property:P417 ?m . ?m rdf:type ontology:Q502895 }
Luke the Evangelist
The patron saint of that occupation is Saint Luke the Evangelist
Luke the Evangelist
action filter_type
action find
entity painter
relation patron saint
type common name
['painter', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:painter property:patron_saint ?m . ?m rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q128538 Q329737
P417
Q12737077
USER
Does butcher have adopted that person as patron saint ?
(Q329737,P417,Q128538)
action is_in
entity Q128538
action find
entity Q329737
relation P417
['Q329737', 'P417', 'Q128538']
ASK WHERE { resource:Q329737 property:P417 resource:Q128538 }
Luke the Evangelist butcher
action is_in
entity Luke the Evangelist
action find
entity butcher
relation patron saint
['butcher', 'patron saint', 'Luke the Evangelist']
ASK WHERE { resource:butcher property:patron_saint resource:Luke_the_Evangelist }
[]
occupation
SYSTEM
YES
(Q329737,P417,Q128538)
action is_in
entity Q128538
action find
entity Q329737
relation P417
[ANSWER]
['Q329737', 'P417', 'Q128538']
ASK WHERE { resource:Q329737 property:P417 resource:Q128538 }
Yes
action is_in
entity Luke the Evangelist
action find
entity butcher
relation patron saint
['butcher', 'patron saint', 'Luke the Evangelist']
ASK WHERE { resource:butcher property:patron_saint resource:Luke_the_Evangelist }
[]