Simple Question (Direct)
Simple Question
Q7831875
P106
Q12737077
USER
What is the job of Tracy White ?
(Q7831875,P106,c(Q12737077))
action filter_type
action find
entity Q7831875
relation P106
type Q12737077
['Q7831875', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q12737077 . resource:Q7831875 property:P106 ?n }
Tracy White
action filter_type
action find
entity Tracy White
relation occupation
type occupation
['Tracy White', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:occupation . resource:Tracy_White property:occupation ?n }
[]
occupation
Q19204627
SYSTEM
American football player
Q19204627
(Q7831875,P106,c(Q12737077))
action filter_type
action find
entity Q7831875
relation P106
type Q12737077
The job of Tracy White is an [ANSWER]
['Q7831875', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q12737077 . resource:Q7831875 property:P106 ?n }
American football player
The job of Tracy White is an American football player
American football player
action filter_type
action find
entity Tracy White
relation occupation
type occupation
['Tracy White', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:occupation . resource:Tracy_White property:occupation ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19204627
P425
Q349
USER
Which sport has that one as the associated field of occupation ?
(Q19204627,P425,c(Q349))
action filter_type
action find
entity Q19204627
relation P425
type Q349
['Q19204627', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q349 . resource:Q19204627 property:P425 ?r }
American football player
action filter_type
action find
entity American football player
relation field of this occupation
type sport
['American football player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sport . resource:American_football_player property:field_of_this_occupation ?r }
[]
sport
Q41323
SYSTEM
American football
Q41323
(Q19204627,P425,c(Q349))
action filter_type
action find
entity Q19204627
relation P425
type Q349
[ANSWER] has that one as the associated field of occupation
['Q19204627', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q349 . resource:Q19204627 property:P425 ?r }
American football
American football has that one as the associated field of occupation
American football
action filter_type
action find
entity American football player
relation field of this occupation
type sport
['American football player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sport . resource:American_football_player property:field_of_this_occupation ?r }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19204627
P361
Q847017
USER
What is American football player a portion of ?
(Q19204627,P361,c(Q847017))
action filter_type
action find
entity Q19204627
relation P361
type Q847017
['Q19204627', 'P361', {'concept': 'Q847017'}]
SELECT DISTINCT ?o WHERE { resource:Q19204627 property:P361 ?o . ?o rdf:type ontology:Q847017 }
American football player
action filter_type
action find
entity American football player
relation part of
type sports club
['American football player', 'part of', {'concept': 'sports club'}]
SELECT DISTINCT ?o WHERE { resource:American_football_player property:part_of ?o . ?o rdf:type ontology:sports_club }
[]
sports club
Q17156793
SYSTEM
American football team
Q17156793
(Q19204627,P361,c(Q847017))
action filter_type
action find
entity Q19204627
relation P361
type Q847017
The [ANSWER] is American football player a portion of
['Q19204627', 'P361', {'concept': 'Q847017'}]
SELECT DISTINCT ?o WHERE { resource:Q19204627 property:P361 ?o . ?o rdf:type ontology:Q847017 }
American football team
The American football team is American football player a portion of
American football team
action filter_type
action find
entity American football player
relation part of
type sports club
['American football player', 'part of', {'concept': 'sports club'}]
SELECT DISTINCT ?o WHERE { resource:American_football_player property:part_of ?o . ?o rdf:type ontology:sports_club }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16854996
Q847017
USER
And what about Grasshopper Club Zürich?
(Q16854996,P361,c(Q847017))
action filter_type
action find
entity Q16854996
relation P361
type Q847017
['Q16854996', 'P361', {'concept': 'Q847017'}]
SELECT DISTINCT ?t WHERE { resource:Q16854996 property:P361 ?t . ?t rdf:type ontology:Q847017 }
Grasshopper Club Zürich
action filter_type
action find
entity Grasshopper Club Zürich
relation part of
type sports club
['Grasshopper Club Zürich', 'part of', {'concept': 'sports club'}]
SELECT DISTINCT ?t WHERE { resource:Grasshopper_Club_Zürich property:part_of ?t . ?t rdf:type ontology:sports_club }
[]
sports club
Q201360
SYSTEM
Grasshopper Club Zürich
Q201360
(Q16854996,P361,c(Q847017))
action filter_type
action find
entity Q16854996
relation P361
type Q847017
[ANSWER]
['Q16854996', 'P361', {'concept': 'Q847017'}]
SELECT DISTINCT ?t WHERE { resource:Q16854996 property:P361 ?t . ?t rdf:type ontology:Q847017 }
Grasshopper Club Zürich
Grasshopper Club Zürich
action filter_type
action find
entity Grasshopper Club Zürich
relation part of
type sports club
['Grasshopper Club Zürich', 'part of', {'concept': 'sports club'}]
SELECT DISTINCT ?t WHERE { resource:Grasshopper_Club_Zürich property:part_of ?t . ?t rdf:type ontology:sports_club }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P748
Q11204 Q1307214 Q12737077
USER
How many occupations did atleast 1 legislatures and forms of government appoint ?
(c(Q12737077),P748,c(Q11204)|c(Q1307214))
action count
action atleast
action union
action find_tuple_counts
relation P748
type Q12737077
type Q11204
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
value 1
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q11204'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?i ) WHERE { VALUES ( ?k ) { ( ontology:Q1307214 ) ( ontology:Q11204 ) } . ?z rdf:type ?k } GROUP BY ?y } . FILTER ( ?i >= 1 ) }
action count
action atleast
action union
action find_tuple_counts
relation appointed by
type occupation
type legislature
action find_tuple_counts
relation appointed by
type occupation
type form of government
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'legislature'}, {'concept': 'form of government'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?i ) WHERE { VALUES ( ?k ) { ( ontology:form_of_government ) ( ontology:legislature ) } . ?z rdf:type ?k } GROUP BY ?y } . FILTER ( ?i >= 1 ) }
[]
legislature form of government occupation
SYSTEM
20
Q11793630 Q1355456 Q1507619 Q910308 Q1753754 Q943379 Q655407 Q596123 Q583809 Q1043568 Q2962001 Q866680 Q26000995 Q213107 Q4122271 Q162754 Q217217 Q1281611 Q1752225 Q687908
(c(Q12737077),P748,c(Q11204)|c(Q1307214))
action count
action atleast
action union
action find_tuple_counts
relation P748
type Q12737077
type Q11204
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
value 1
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q11204'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?i ) WHERE { VALUES ( ?k ) { ( ontology:Q1307214 ) ( ontology:Q11204 ) } . ?z rdf:type ?k } GROUP BY ?y } . FILTER ( ?i >= 1 ) }
governor of national banks of Serbia and Yugoslavia Lord Chamberlain Deputy Prime Minister of the United Kingdom Lord Privy Seal Master of the Rolls Lord President of the Council President of the People's Republic of China president of Bangladesh Solicitor General for England and Wales Prime Minister of Vietnam Chief of the Defence Staff President of Vietnam President of the Parliament of Catalonia Prime Minister of Belgium Premier of the People's Republic of China Chancellor of the Duchy of Lancaster Lord Chancellor Lieutenant Governor of Jersey Lord Lieutenant of Ireland Lord Chief Justice of England and Wales
20
action count
action atleast
action union
action find_tuple_counts
relation appointed by
type occupation
type legislature
action find_tuple_counts
relation appointed by
type occupation
type form of government
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'legislature'}, {'concept': 'form of government'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?i ) WHERE { VALUES ( ?k ) { ( ontology:form_of_government ) ( ontology:legislature ) } . ?z rdf:type ?k } GROUP BY ?y } . FILTER ( ?i >= 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q201360
P641
Q349
USER
What were the sports that Grasshopper Club Zürich were a part of ?
(Q201360,P641,c(Q349))
action filter_type
action find
entity Q201360
relation P641
type Q349
['Q201360', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?y WHERE { resource:Q201360 property:P641 ?y . ?y rdf:type ontology:Q349 }
Grasshopper Club Zürich
action filter_type
action find
entity Grasshopper Club Zürich
relation sport
type sport
['Grasshopper Club Zürich', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?y WHERE { resource:Grasshopper_Club_Zürich property:sport ?y . ?y rdf:type ontology:sport }
[]
sport
Q206763 Q136851 Q847
SYSTEM
floorball, curling, tennis
Q133201 Q136851 Q41466 Q5372 Q847 Q8418 Q210778 Q1455 Q206763 Q2736
(Q201360,P641,c(Q349))
action filter_type
action find
entity Q201360
relation P641
type Q349
The sports that Grasshopper Club Zürich were a part of were [ANSWERS]
['Q201360', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?y WHERE { resource:Q201360 property:P641 ?y . ?y rdf:type ontology:Q349 }
squash curling ice hockey basketball tennis handball beach soccer field hockey floorball association football
The sports that Grasshopper Club Zürich were a part of were floorball, curling and tennis
floorball curling tennis
action filter_type
action find
entity Grasshopper Club Zürich
relation sport
type sport
['Grasshopper Club Zürich', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?y WHERE { resource:Grasshopper_Club_Zürich property:sport ?y . ?y rdf:type ontology:sport }
[]
Clarification
Simple Question|Single Entity|Indirect
Q206763
P366
Q811979
USER
Which architectural structure is mainly used as that sport ?
(c(Q811979),P366,Q206763)
action filter_type
action find_reverse
entity Q206763
relation P366
type Q811979
[{'concept': 'Q811979'}, 'P366', 'Q206763']
SELECT DISTINCT ?g WHERE { ?g property:P366 resource:Q206763 . ?g rdf:type ontology:Q811979 }
floorball
action filter_type
action find_reverse
entity floorball
relation use
type architectural structure
[{'concept': 'architectural structure'}, 'use', 'floorball']
SELECT DISTINCT ?g WHERE { ?g property:use resource:floorball . ?g rdf:type ontology:architectural_structure }
[]
architectural structure
Clarification for simple ques.
Q136851
SYSTEM
Did you mean curling ?
Q206763 Q136851 Q847
(c(Q811979),P366,Q206763) (c(Q811979),P366,Q136851) (c(Q811979),P366,Q847)
[ANSWER]
[{'concept': 'Q811979'}, 'P366', 'Q206763'] [{'concept': 'Q811979'}, 'P366', 'Q136851'] [{'concept': 'Q811979'}, 'P366', 'Q847']
SELECT DISTINCT ?g WHERE { ?g property:P366 resource:Q206763 . ?g rdf:type ontology:Q811979 }
floorball curling tennis
Did you mean curling ?
curling
[{'concept': 'architectural structure'}, 'use', 'floorball'] [{'concept': 'architectural structure'}, 'use', 'curling'] [{'concept': 'architectural structure'}, 'use', 'tennis']
SELECT DISTINCT ?g WHERE { ?g property:use resource:floorball . ?g rdf:type ontology:architectural_structure }
[]
Simple Question (Coreferenced)
USER
No, I meant floorball. Could you tell me the answer for that?
(c(Q811979),P366,Q206763)
Q206763
[{'concept': 'Q811979'}, 'P366', 'Q206763']
[{'concept': 'architectural structure'}, 'use', 'floorball']
[]
Q10542115
SYSTEM
Jönköpings idrottshus
Q10542115
(c(Q811979),P366,Q206763)
action filter_type
action find_reverse
entity Q206763
relation P366
type Q811979
[ANSWER] is mainly used as that sport
[{'concept': 'Q811979'}, 'P366', 'Q206763']
SELECT DISTINCT ?g WHERE { ?g property:P366 resource:Q206763 . ?g rdf:type ontology:Q811979 }
Jönköpings idrottshus
Jönköpings idrottshus is mainly used as that sport
Jönköpings idrottshus
action filter_type
action find_reverse
entity floorball
relation use
type architectural structure
[{'concept': 'architectural structure'}, 'use', 'floorball']
SELECT DISTINCT ?g WHERE { ?g property:use resource:floorball . ?g rdf:type ontology:architectural_structure }
[]