Simple Question (Direct)
Simple Question
Q2343307
P106
Q12737077
USER
Which occupation is the profession of Stephan Gusche ?
(Q2343307,P106,c(Q12737077))
action filter_type
action find
entity Q2343307
relation P106
type Q12737077
['Q2343307', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q2343307 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Stephan Gusche
action filter_type
action find
entity Stephan Gusche
relation occupation
type occupation
['Stephan Gusche', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Stephan_Gusche property:occupation ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q2343307,P106,c(Q12737077))
action filter_type
action find
entity Q2343307
relation P106
type Q12737077
Player [ANSWER] is the profession of Stephan Gusche
['Q2343307', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q2343307 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
association football player
Player association football player is the profession of Stephan Gusche
association football player
action filter_type
action find
entity Stephan Gusche
relation occupation
type occupation
['Stephan Gusche', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Stephan_Gusche property:occupation ?q . ?q rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2343307
P641
Q349
USER
What was the sport that Stephan Gusche was a part of ?
(Q2343307,P641,c(Q349))
action filter_type
action find
entity Q2343307
relation P641
type Q349
['Q2343307', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { resource:Q2343307 property:P641 ?n . ?n rdf:type ontology:Q349 }
Stephan Gusche
action filter_type
action find
entity Stephan Gusche
relation sport
type sport
['Stephan Gusche', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { resource:Stephan_Gusche property:sport ?n . ?n rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q2343307,P641,c(Q349))
action filter_type
action find
entity Q2343307
relation P641
type Q349
The sport that Stephan Gusche was a part of was the [ANSWER]
['Q2343307', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { resource:Q2343307 property:P641 ?n . ?n rdf:type ontology:Q349 }
association football
The sport that Stephan Gusche was a part of was the association football
association football
action filter_type
action find
entity Stephan Gusche
relation sport
type sport
['Stephan Gusche', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { resource:Stephan_Gusche property:sport ?n . ?n rdf:type ontology:sport }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4041105
Q349
USER
And what about ISBO?
(Q4041105,P641,c(Q349))
action filter_type
action find
entity Q4041105
relation P641
type Q349
['Q4041105', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q349 . resource:Q4041105 property:P641 ?m }
ISBO
action filter_type
action find
entity ISBO
relation sport
type sport
['ISBO', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:sport . resource:ISBO property:sport ?m }
[]
sport
Q7291
SYSTEM
badminton
Q7291
(Q4041105,P641,c(Q349))
action filter_type
action find
entity Q4041105
relation P641
type Q349
[ANSWER]
['Q4041105', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q349 . resource:Q4041105 property:P641 ?m }
badminton
badminton
action filter_type
action find
entity ISBO
relation sport
type sport
['ISBO', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:sport . resource:ISBO property:sport ?m }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3357265
Q349
USER
And also tell me about Osman Akyol?
(Q3357265,P641,c(Q349))
action filter_type
action find
entity Q3357265
relation P641
type Q349
['Q3357265', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?s WHERE { resource:Q3357265 property:P641 ?s . ?s rdf:type ontology:Q349 }
Osman Akyol
action filter_type
action find
entity Osman Akyol
relation sport
type sport
['Osman Akyol', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?s WHERE { resource:Osman_Akyol property:sport ?s . ?s rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q3357265,P641,c(Q349))
action filter_type
action find
entity Q3357265
relation P641
type Q349
[ANSWER]
['Q3357265', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?s WHERE { resource:Q3357265 property:P641 ?s . ?s rdf:type ontology:Q349 }
association football
association football
action filter_type
action find
entity Osman Akyol
relation sport
type sport
['Osman Akyol', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?s WHERE { resource:Osman_Akyol property:sport ?s . ?s rdf:type ontology:sport }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P101
Q349 Q502895 Q43229
USER
How many sports do around the same number of people or organizations belong to as that sport ?
(c(Q502895)|c(Q43229),P101,c(Q349))
action count
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q349
type Q502895
action find_reverse_tuple_counts
relation P101
type Q349
type Q43229
action count
action filter_multi_types
action find_reverse
entity Q2736
relation P101
type Q502895
type Q43229
[[{'concept': 'Q502895'}, {'concept': 'Q43229'}], 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?i ) WHERE { VALUES ( ?a ) { ( ontology:Q502895 ) ( ontology:Q43229 ) } . ?v rdf:type ?a } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { ?s property:P101 resource:Q2736 . { { ?s rdf:type ontology:Q43229 } UNION { ?s rdf:type ontology:Q502895 } } } } . FILTER ( ?i = ?h ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation field of work
type sport
type common name
action find_reverse_tuple_counts
relation field of work
type sport
type organization
action count
action filter_multi_types
action find_reverse
entity association football
relation field of work
type common name
type organization
[[{'concept': 'common name'}, {'concept': 'organization'}], 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?i ) WHERE { VALUES ( ?a ) { ( ontology:common_name ) ( ontology:organization ) } . ?v rdf:type ?a } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { ?s property:field_of_work resource:association_football . { { ?s rdf:type ontology:organization } UNION { ?s rdf:type ontology:common_name } } } } . FILTER ( ?i = ?h ) }
[]
sport common name organization
SYSTEM
2
Q31920 Q2736
(c(Q502895)|c(Q43229),P101,c(Q349))
action count
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q349
type Q502895
action find_reverse_tuple_counts
relation P101
type Q349
type Q43229
action count
action filter_multi_types
action find_reverse
entity Q2736
relation P101
type Q502895
type Q43229
[ANSWER]
[[{'concept': 'Q502895'}, {'concept': 'Q43229'}], 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?i ) WHERE { VALUES ( ?a ) { ( ontology:Q502895 ) ( ontology:Q43229 ) } . ?v rdf:type ?a } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { ?s property:P101 resource:Q2736 . { { ?s rdf:type ontology:Q43229 } UNION { ?s rdf:type ontology:Q502895 } } } } . FILTER ( ?i = ?h ) }
swimming association football
2
action count
action approx
action union
action find_reverse_tuple_counts
relation field of work
type sport
type common name
action find_reverse_tuple_counts
relation field of work
type sport
type organization
action count
action filter_multi_types
action find_reverse
entity association football
relation field of work
type common name
type organization
[[{'concept': 'common name'}, {'concept': 'organization'}], 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?i ) WHERE { VALUES ( ?a ) { ( ontology:common_name ) ( ontology:organization ) } . ?v rdf:type ?a } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { ?s property:field_of_work resource:association_football . { { ?s rdf:type ontology:organization } UNION { ?s rdf:type ontology:common_name } } } } . FILTER ( ?i = ?h ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q937857
P425
Q349
USER
Who is associated with the field of occupation association football player ?
(Q937857,P425,c(Q349))
action filter_type
action find
entity Q937857
relation P425
type Q349
['Q937857', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { resource:Q937857 property:P425 ?n . ?n rdf:type ontology:Q349 }
association football player
action filter_type
action find
entity association football player
relation field of this occupation
type sport
['association football player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { resource:association_football_player property:field_of_this_occupation ?n . ?n rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q937857,P425,c(Q349))
action filter_type
action find
entity Q937857
relation P425
type Q349
As [ANSWER] is associated with the field of occupation [ANSWER] player
['Q937857', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { resource:Q937857 property:P425 ?n . ?n rdf:type ontology:Q349 }
association football
As association football is associated with the field of occupation association football player
association football
action filter_type
action find
entity association football player
relation field of this occupation
type sport
['association football player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { resource:association_football_player property:field_of_this_occupation ?n . ?n rdf:type ontology:sport }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16947675
Q349
USER
And also tell me about gymnast?
(Q16947675,P425,c(Q349))
action filter_type
action find
entity Q16947675
relation P425
type Q349
['Q16947675', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q349 . resource:Q16947675 property:P425 ?d }
gymnast
action filter_type
action find
entity gymnast
relation field of this occupation
type sport
['gymnast', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:sport . resource:gymnast property:field_of_this_occupation ?d }
[]
sport
Q43450
SYSTEM
gymnastics
Q43450
(Q16947675,P425,c(Q349))
action filter_type
action find
entity Q16947675
relation P425
type Q349
[ANSWER]
['Q16947675', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q349 . resource:Q16947675 property:P425 ?d }
gymnastics
gymnastics
action filter_type
action find
entity gymnast
relation field of this occupation
type sport
['gymnast', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:sport . resource:gymnast property:field_of_this_occupation ?d }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q43450 Q12021831
P641
Q502895
USER
Does Irena Šimečková play that sport ?
(Q12021831,P641,Q43450)
action is_in
entity Q12021831
action find
entity Q43450
relation P641
['Q12021831', 'P641', 'Q43450']
ASK WHERE { resource:Q43450 property:P641 resource:Q12021831 }
gymnastics Irena Šimečková
action is_in
entity Irena Šimečková
action find
entity gymnastics
relation sport
['Irena Šimečková', 'sport', 'gymnastics']
ASK WHERE { resource:gymnastics property:sport resource:Irena_Šimečková }
[]
common name
SYSTEM
NO
(Q12021831,P641,Q43450)
action is_in
entity Q12021831
action find
entity Q43450
relation P641
[ANSWER]
['Q12021831', 'P641', 'Q43450']
ASK WHERE { resource:Q43450 property:P641 resource:Q12021831 }
No
action is_in
entity Irena Šimečková
action find
entity gymnastics
relation sport
['Irena Šimečková', 'sport', 'gymnastics']
ASK WHERE { resource:gymnastics property:sport resource:Irena_Šimečková }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2343307 Q4260894
P27
Q1048835
USER
Is Stephan Gusche an inhabitant of Lybohora ?
(Q2343307,P27,Q4260894)
action is_in
entity Q4260894
action find
entity Q2343307
relation P27
['Q2343307', 'P27', 'Q4260894']
ASK WHERE { resource:Q2343307 property:P27 resource:Q4260894 }
Stephan Gusche Lybohora
action is_in
entity Lybohora
action find
entity Stephan Gusche
relation country of citizenship
['Stephan Gusche', 'country of citizenship', 'Lybohora']
ASK WHERE { resource:Stephan_Gusche property:country_of_citizenship resource:Lybohora }
[]
political territorial entity
SYSTEM
NO
(Q2343307,P27,Q4260894)
action is_in
entity Q4260894
action find
entity Q2343307
relation P27
[ANSWER]
['Q2343307', 'P27', 'Q4260894']
ASK WHERE { resource:Q2343307 property:P27 resource:Q4260894 }
No
action is_in
entity Lybohora
action find
entity Stephan Gusche
relation country of citizenship
['Stephan Gusche', 'country of citizenship', 'Lybohora']
ASK WHERE { resource:Stephan_Gusche property:country_of_citizenship resource:Lybohora }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q43450
P21 P641
Q502895
USER
Which people are associated with playing gymnastics and have male as the sex ?
AND((c(Q502895),P641,Q43450), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q43450
relation P641
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P641', 'Q43450'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?r WHERE { ?r property:P641 resource:Q43450 . ?r property:P21 resource:Q6581097 . ?r rdf:type ontology:Q502895 }
male gymnastics
action filter_type
action intersection
action find_reverse
entity gymnastics
relation sport
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'sport', 'gymnastics'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?r WHERE { ?r property:sport resource:gymnastics . ?r property:gender resource:male . ?r rdf:type ontology:common_name }
[]
common name
Q160021 Q475571 Q2290841 Q3561170 Q6524250 Q1508905 Q708780 Q18744938 Q3060085 Q2977956
SYSTEM
Some of them are Miroslav Tyrš, Sylvio Kroll, Béla Károlyi, Vitali Doubko, Leo Sotorník, Georges Demenÿ, Pehr Henrik Ling, Pierre Puvis, Eugène Paz, Claude Piard
Q2525789 Q2977956 Q18744938 Q475571 Q77098 Q3185616 Q3561170 Q564364 Q105428 Q6524250 Q3060085 Q708780 Q61926 Q3081794 Q1316144 Q3132068 Q1508905 Q2958693 Q2448490 Q11715752 Q16112504 Q160021 Q14191478 Q2290841
AND((c(Q502895),P641,Q43450), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q43450
relation P641
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] are associated with playing gymnastics and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P641', 'Q43450'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?r WHERE { ?r property:P641 resource:Q43450 . ?r property:P21 resource:Q6581097 . ?r rdf:type ontology:Q502895 }
Bruno Grandi Claude Piard Pierre Puvis Sylvio Kroll Friedrich Ludwig Jahn Joseph Sansboeuf Vitali Doubko John Sitaras Johann Heinrich Pestalozzi Leo Sotorník Eugène Paz Pehr Henrik Ling Joseph Pilates Francisco Amoros Gyula Takács Octavian Bellu Georges Demenÿ Charles Cazalet Kaarlo Kustaa Paasia Jack Wells Stevan Stantić Miroslav Tyrš Arthur Magakian Béla Károlyi
Miroslav Tyrš, Sylvio Kroll, Béla Károlyi, Vitali Doubko, Leo Sotorník, Georges Demenÿ, Pehr Henrik Ling, Pierre Puvis, Eugène Paz and Claude Piard are associated with playing gymnastics and have male as the sex
Miroslav Tyrš Sylvio Kroll Béla Károlyi Vitali Doubko Leo Sotorník Georges Demenÿ Pehr Henrik Ling Pierre Puvis Eugène Paz Claude Piard
action filter_type
action intersection
action find_reverse
entity gymnastics
relation sport
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'sport', 'gymnastics'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?r WHERE { ?r property:sport resource:gymnastics . ?r property:gender resource:male . ?r rdf:type ontology:common_name }
[]