Simple Question (Direct)
Simple Question
Q4565909
P106
Q12737077
USER
What are the professions of Carl-Ehrenfried Carlberg ?
(Q4565909,P106,c(Q12737077))
action filter_type
action find
entity Q4565909
relation P106
type Q12737077
['Q4565909', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q12737077 . resource:Q4565909 property:P106 ?n }
Carl-Ehrenfried Carlberg
action filter_type
action find
entity Carl-Ehrenfried Carlberg
relation occupation
type occupation
['Carl-Ehrenfried Carlberg', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:occupation . resource:Carl-Ehrenfried_Carlberg property:occupation ?n }
[]
occupation
Q13381572 Q82955
SYSTEM
artistic gymnast, politician
Q13381572 Q82955
(Q4565909,P106,c(Q12737077))
action filter_type
action find
entity Q4565909
relation P106
type Q12737077
The professions of Carl-Ehrenfried Carlberg are an [ANSWERS]
['Q4565909', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q12737077 . resource:Q4565909 property:P106 ?n }
artistic gymnast politician
The professions of Carl-Ehrenfried Carlberg are an artistic gymnast and politician
artistic gymnast politician
action filter_type
action find
entity Carl-Ehrenfried Carlberg
relation occupation
type occupation
['Carl-Ehrenfried Carlberg', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:occupation . resource:Carl-Ehrenfried_Carlberg property:occupation ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4565909
P641
Q31629
USER
What did that person participate in ?
(Q13381572,P641,c(Q31629)) (Q82955,P641,c(Q31629))
action filter_type
action find
entity Q4565909
relation P641
type Q31629
['Q13381572', 'P641', {'concept': 'Q31629'}] ['Q82955', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?s WHERE { resource:Q4565909 property:P641 ?s . ?s rdf:type ontology:Q31629 }
Carl-Ehrenfried Carlberg
action filter_type
action find
entity Carl-Ehrenfried Carlberg
relation sport
type type of sport
['artistic gymnast', 'sport', {'concept': 'type of sport'}] ['politician', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?s WHERE { resource:Carl-Ehrenfried_Carlberg property:sport ?s . ?s rdf:type ontology:type_of_sport }
[]
type of sport
Q326827
SYSTEM
artistic gymnastics
Q326827
(Q13381572,P641,c(Q31629)) (Q82955,P641,c(Q31629))
action filter_type
action find
entity Q4565909
relation P641
type Q31629
That person participated in [ANSWER]
['Q13381572', 'P641', {'concept': 'Q31629'}] ['Q82955', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?s WHERE { resource:Q4565909 property:P641 ?s . ?s rdf:type ontology:Q31629 }
artistic gymnastics
That person participated in artistic gymnastics
artistic gymnastics
action filter_type
action find
entity Carl-Ehrenfried Carlberg
relation sport
type type of sport
['artistic gymnast', 'sport', {'concept': 'type of sport'}] ['politician', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?s WHERE { resource:Carl-Ehrenfried_Carlberg property:sport ?s . ?s rdf:type ontology:type_of_sport }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P641
Q31629 Q500834 Q13406554
USER
How many types of sport were around 32 tournaments and sport competitions a part of ?
(c(Q500834)|c(Q13406554),P641,c(Q31629))
action count
action approx
action union
action find_reverse_tuple_counts
relation P641
type Q31629
type Q500834
action find_reverse_tuple_counts
relation P641
type Q31629
type Q13406554
value 32
[[{'concept': 'Q500834'}, {'concept': 'Q13406554'}], 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) ?h WHERE { { ?h rdf:type ontology:Q31629 . ?i rdf:type ontology:Q500834 . ?i property:P641 ?h } UNION { ?i property:P641 ?h . ?h rdf:type ontology:Q31629 . ?i rdf:type ontology:Q13406554 } } GROUP BY ?h } . FILTER ( ?c = 32 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation sport
type type of sport
type tournament
action find_reverse_tuple_counts
relation sport
type type of sport
type sport competition
value 32
[[{'concept': 'tournament'}, {'concept': 'sport competition'}], 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) ?h WHERE { { ?h rdf:type ontology:type_of_sport . ?i rdf:type ontology:tournament . ?i property:sport ?h } UNION { ?i property:sport ?h . ?h rdf:type ontology:type_of_sport . ?i rdf:type ontology:sport_competition } } GROUP BY ?h } . FILTER ( ?c = 32 ) }
[]
type of sport tournament sport competition
SYSTEM
6
Q166788 Q718 Q3609 Q40244 Q465014 Q48890
(c(Q500834)|c(Q13406554),P641,c(Q31629))
action count
action approx
action union
action find_reverse_tuple_counts
relation P641
type Q31629
type Q500834
action find_reverse_tuple_counts
relation P641
type Q31629
type Q13406554
value 32
[ANSWER]
[[{'concept': 'Q500834'}, {'concept': 'Q13406554'}], 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) ?h WHERE { { ?h rdf:type ontology:Q31629 . ?i rdf:type ontology:Q500834 . ?i property:P641 ?h } UNION { ?i property:P641 ?h . ?h rdf:type ontology:Q31629 . ?i rdf:type ontology:Q13406554 } } GROUP BY ?h } . FILTER ( ?c = 32 ) }
biathlon chess road bicycle racing marathon trampolining college basketball
6
action count
action approx
action union
action find_reverse_tuple_counts
relation sport
type type of sport
type tournament
action find_reverse_tuple_counts
relation sport
type type of sport
type sport competition
value 32
[[{'concept': 'tournament'}, {'concept': 'sport competition'}], 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) ?h WHERE { { ?h rdf:type ontology:type_of_sport . ?i rdf:type ontology:tournament . ?i property:sport ?h } UNION { ?i property:sport ?h . ?h rdf:type ontology:type_of_sport . ?i rdf:type ontology:sport_competition } } GROUP BY ?h } . FILTER ( ?c = 32 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q326827
P425
Q12737077
USER
What is the occupation that artistic gymnastics belongs to ?
(c(Q12737077),P425,Q326827)
action filter_type
action find_reverse
entity Q326827
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q326827']
SELECT DISTINCT ?k WHERE { ?k property:P425 resource:Q326827 . ?k rdf:type ontology:Q12737077 }
artistic gymnastics
action filter_type
action find_reverse
entity artistic gymnastics
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'artistic gymnastics']
SELECT DISTINCT ?k WHERE { ?k property:field_of_this_occupation resource:artistic_gymnastics . ?k rdf:type ontology:occupation }
[]
occupation
Q13381572
SYSTEM
artistic gymnast
Q13381572
(c(Q12737077),P425,Q326827)
action filter_type
action find_reverse
entity Q326827
relation P425
type Q12737077
The occupation that [ANSWER]ics belongs to is not [ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q326827']
SELECT DISTINCT ?k WHERE { ?k property:P425 resource:Q326827 . ?k rdf:type ontology:Q12737077 }
artistic gymnast
The occupation that artistic gymnastics belongs to is not artistic gymnast
artistic gymnast
action filter_type
action find_reverse
entity artistic gymnastics
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'artistic gymnastics']
SELECT DISTINCT ?k WHERE { ?k property:field_of_this_occupation resource:artistic_gymnastics . ?k rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6660960 Q4565909
P27
Q15617994
USER
Which administrative territories are Carl-Ehrenfried Carlberg or Ljubodrag Milošević an inhabitant of ?
OR((Q4565909,P27,c(Q15617994)), (Q6660960,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q4565909
relation P27
action find
entity Q6660960
relation P27
type Q15617994
{'OR': [['Q4565909', 'P27', {'concept': 'Q15617994'}], ['Q6660960', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { ?s property:P27 ?c . VALUES ( ?s ) { ( resource:Q6660960 ) ( resource:Q4565909 ) } } . ?c rdf:type ontology:Q15617994 }
Ljubodrag Milošević Carl-Ehrenfried Carlberg
action filter_type
action union
action find
entity Carl-Ehrenfried Carlberg
relation country of citizenship
action find
entity Ljubodrag Milošević
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Carl-Ehrenfried Carlberg', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ljubodrag Milošević', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { ?s property:country_of_citizenship ?c . VALUES ( ?s ) { ( resource:Ljubodrag_Milošević ) ( resource:Carl-Ehrenfried_Carlberg ) } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q221 Q34
SYSTEM
Republic of Macedonia, Sweden
Q221 Q34
OR((Q4565909,P27,c(Q15617994)), (Q6660960,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q4565909
relation P27
action find
entity Q6660960
relation P27
type Q15617994
[ANSWERS] are Carl-Ehrenfried Carlberg or Ljubodrag Milošević an inhabitant of
{'OR': [['Q4565909', 'P27', {'concept': 'Q15617994'}], ['Q6660960', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { ?s property:P27 ?c . VALUES ( ?s ) { ( resource:Q6660960 ) ( resource:Q4565909 ) } } . ?c rdf:type ontology:Q15617994 }
Republic of Macedonia Sweden
Republic of Macedonia and Sweden are Carl-Ehrenfried Carlberg or Ljubodrag Milošević an inhabitant of
Republic of Macedonia Sweden
action filter_type
action union
action find
entity Carl-Ehrenfried Carlberg
relation country of citizenship
action find
entity Ljubodrag Milošević
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Carl-Ehrenfried Carlberg', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ljubodrag Milošević', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { ?s property:country_of_citizenship ?c . VALUES ( ?s ) { ( resource:Ljubodrag_Milošević ) ( resource:Carl-Ehrenfried_Carlberg ) } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q221 Q34
P35
Q502895
USER
Which people are the heads of state of those administrative territories ?
(Q221,P35,c(Q502895)) (Q34,P35,c(Q502895))
action filter_type
action find
entity prev_answer
relation P35
type Q502895
['Q221', 'P35', {'concept': 'Q502895'}] ['Q34', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . ?c property:P35 ?y . VALUES ( ?c ) { ( resource:Q221 ) ( resource:Q34 ) } }
Republic of Macedonia Sweden
action filter_type
action find
entity prev_answer
relation head of state
type common name
['Republic of Macedonia', 'head of state', {'concept': 'common name'}] ['Sweden', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . ?c property:head_of_state ?y . VALUES ( ?c ) { ( resource:Republic_of_Macedonia ) ( resource:Sweden ) } }
[]
common name
Q52878 Q52890 Q45068
SYSTEM
Gustaf VI Adolf of Sweden, Gustaf V of Sweden, Carl XVI Gustaf of Sweden
Q57436 Q52878 Q52890 Q45068 Q52925 Q52924 Q52927 Q52926
(Q221,P35,c(Q502895)) (Q34,P35,c(Q502895))
action filter_type
action find
entity prev_answer
relation P35
type Q502895
[ANSWERS] are the heads of state of those administrative territories
['Q221', 'P35', {'concept': 'Q502895'}] ['Q34', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . ?c property:P35 ?y . VALUES ( ?c ) { ( resource:Q221 ) ( resource:Q34 ) } }
Gjorge Ivanov Gustaf VI Adolf of Sweden Gustaf V of Sweden Carl XVI Gustaf of Sweden Charles XV of Sweden Oscar II of Sweden Charles XIV John of Sweden Oscar I of Sweden
Gustaf VI Adolf of Sweden, Gustaf V of Sweden and Carl XVI Gustaf of Sweden are the heads of state of those administrative territories
Gustaf VI Adolf of Sweden Gustaf V of Sweden Carl XVI Gustaf of Sweden
action filter_type
action find
entity prev_answer
relation head of state
type common name
['Republic of Macedonia', 'head of state', {'concept': 'common name'}] ['Sweden', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . ?c property:head_of_state ?y . VALUES ( ?c ) { ( resource:Republic_of_Macedonia ) ( resource:Sweden ) } }
[]