Simple Question (Direct)
Simple Question
Q5648709
P641
Q349
USER
Which sport did Hanna Konsek participate in ?
(Q5648709,P641,c(Q349))
action filter_type
action find
entity Q5648709
relation P641
type Q349
['Q5648709', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?z WHERE { resource:Q5648709 property:P641 ?z . ?z rdf:type ontology:Q349 }
Hanna Konsek
action filter_type
action find
entity Hanna Konsek
relation sport
type sport
['Hanna Konsek', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?z WHERE { resource:Hanna_Konsek property:sport ?z . ?z rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q5648709,P641,c(Q349))
action filter_type
action find
entity Q5648709
relation P641
type Q349
[ANSWER]
['Q5648709', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?z WHERE { resource:Q5648709 property:P641 ?z . ?z rdf:type ontology:Q349 }
association football
association football
action filter_type
action find
entity Hanna Konsek
relation sport
type sport
['Hanna Konsek', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?z WHERE { resource:Hanna_Konsek property:sport ?z . ?z rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5648709
P54
Q6979593
USER
Which national association football team is that person a member of ?
(Q2736,P54,c(Q6979593))
action filter_type
action find
entity Q5648709
relation P54
type Q6979593
['Q2736', 'P54', {'concept': 'Q6979593'}]
SELECT DISTINCT ?v WHERE { resource:Q5648709 property:P54 ?v . ?v rdf:type ontology:Q6979593 }
Hanna Konsek
action filter_type
action find
entity Hanna Konsek
relation member of sports team
type national association football team
['association football', 'member of sports team', {'concept': 'national association football team'}]
SELECT DISTINCT ?v WHERE { resource:Hanna_Konsek property:member_of_sports_team ?v . ?v rdf:type ontology:national_association_football_team }
[]
national association football team
Q1077259
SYSTEM
Poland women's national football team
Q1077259
(Q2736,P54,c(Q6979593))
action filter_type
action find
entity Q5648709
relation P54
type Q6979593
[ANSWER]
['Q2736', 'P54', {'concept': 'Q6979593'}]
SELECT DISTINCT ?v WHERE { resource:Q5648709 property:P54 ?v . ?v rdf:type ontology:Q6979593 }
Poland women's national football team
Poland women's national football team
action filter_type
action find
entity Hanna Konsek
relation member of sports team
type national association football team
['association football', 'member of sports team', {'concept': 'national association football team'}]
SELECT DISTINCT ?v WHERE { resource:Hanna_Konsek property:member_of_sports_team ?v . ?v rdf:type ontology:national_association_football_team }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1532
Q1048835 Q6979593
USER
Which political territories do atmost 2 national association football teams represent ?
(c(Q6979593),P1532,c(Q1048835))
action atmost
action find_reverse_tuple_counts
relation P1532
type Q1048835
type Q6979593
value 2
[{'concept': 'Q6979593'}, 'P1532', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?w ) WHERE { ?g property:P1532 ?v . ?g rdf:type ontology:Q6979593 . ?v rdf:type ontology:Q1048835 } GROUP BY ?v } . FILTER ( ?w <= 2 ) }
action atmost
action find_reverse_tuple_counts
relation country for sport
type political territorial entity
type national association football team
value 2
[{'concept': 'national association football team'}, 'country for sport', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?w ) WHERE { ?g property:country_for_sport ?v . ?g rdf:type ontology:national_association_football_team . ?v rdf:type ontology:political_territorial_entity } GROUP BY ?v } . FILTER ( ?w <= 2 ) }
[]
political territorial entity national association football team
Q40 Q5705 Q1000
SYSTEM
Austria, Catalonia, Gabon
Q1000 Q769 Q685 Q763 Q766 Q5720 Q13353 Q781 Q5705 Q5785 Q3995 Q18221 Q778 Q691 Q757 Q4040 Q40 Q23635 Q25305
(c(Q6979593),P1532,c(Q1048835))
action atmost
action find_reverse_tuple_counts
relation P1532
type Q1048835
type Q6979593
value 2
[ANSWERS]
[{'concept': 'Q6979593'}, 'P1532', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?w ) WHERE { ?g property:P1532 ?v . ?g rdf:type ontology:Q6979593 . ?v rdf:type ontology:Q1048835 } GROUP BY ?v } . FILTER ( ?w <= 2 ) }
Gabon Grenada Solomon Islands Saint Kitts and Nevis Jamaica Valencian Country Montserrat Antigua and Barbuda Catalonia Cayman Islands Basque Country Turks and Caicos Islands The Bahamas Papua New Guinea Saint Vincent and the Grenadines Aragon Austria Bermuda British Virgin Islands
Austria Catalonia Gabon
action atmost
action find_reverse_tuple_counts
relation country for sport
type political territorial entity
type national association football team
value 2
[{'concept': 'national association football team'}, 'country for sport', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?w ) WHERE { ?g property:country_for_sport ?v . ?g rdf:type ontology:national_association_football_team . ?v rdf:type ontology:political_territorial_entity } GROUP BY ?v } . FILTER ( ?w <= 2 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q740842 Q5648709
P27 P17
Q15617994
USER
Which administrative territories are Hanna Konsek an inhabitant of and are Zagóra, Zamość County present in ?
AND((Q5648709,P27,c(Q15617994)), (Q740842,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q5648709
relation P27
action find
entity Q740842
relation P17
type Q15617994
{'AND': [['Q5648709', 'P27', {'concept': 'Q15617994'}], ['Q740842', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { resource:Q740842 property:P17 ?s . resource:Q5648709 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Zagóra, Zamość County Hanna Konsek
action filter_type
action intersection
action find
entity Hanna Konsek
relation country of citizenship
action find
entity Zagóra, Zamość County
relation country
type designation for an administrative territorial entity
{'AND': [['Hanna Konsek', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Zagóra, Zamość County', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { resource:Zagóra,_Zamość_County property:country ?s . resource:Hanna_Konsek property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
AND((Q5648709,P27,c(Q15617994)), (Q740842,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q5648709
relation P27
action find
entity Q740842
relation P17
type Q15617994
[ANSWER]
{'AND': [['Q5648709', 'P27', {'concept': 'Q15617994'}], ['Q740842', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { resource:Q740842 property:P17 ?s . resource:Q5648709 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Poland
Poland
action filter_type
action intersection
action find
entity Hanna Konsek
relation country of citizenship
action find
entity Zagóra, Zamość County
relation country
type designation for an administrative territorial entity
{'AND': [['Hanna Konsek', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Zagóra, Zamość County', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { resource:Zagóra,_Zamość_County property:country ?s . resource:Hanna_Konsek property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P641
Q349 Q18608583 Q502895
USER
Which sports were atleast 15365 recurring sporting events and people a part of ?
(c(Q18608583)|c(Q502895),P641,c(Q349))
action atleast
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q18608583
action find_reverse_tuple_counts
relation P641
type Q349
type Q502895
value 15365
[[{'concept': 'Q18608583'}, {'concept': 'Q502895'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?v ) WHERE { ?z rdf:type ?y . VALUES ( ?y ) { ( ontology:Q18608583 ) ( ontology:Q502895 ) } } GROUP BY ?e } . FILTER ( ?v >= 15365 ) }
action atleast
action union
action find_reverse_tuple_counts
relation sport
type sport
type recurring sporting event
action find_reverse_tuple_counts
relation sport
type sport
type common name
value 15365
[[{'concept': 'recurring sporting event'}, {'concept': 'common name'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?v ) WHERE { ?z rdf:type ?y . VALUES ( ?y ) { ( ontology:recurring_sporting_event ) ( ontology:common_name ) } } GROUP BY ?e } . FILTER ( ?v >= 15365 ) }
[]
sport recurring sporting event common name
Q5372 Q2736
SYSTEM
basketball, association football
Q5372 Q2736
(c(Q18608583)|c(Q502895),P641,c(Q349))
action atleast
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q18608583
action find_reverse_tuple_counts
relation P641
type Q349
type Q502895
value 15365
[ANSWERS]
[[{'concept': 'Q18608583'}, {'concept': 'Q502895'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?v ) WHERE { ?z rdf:type ?y . VALUES ( ?y ) { ( ontology:Q18608583 ) ( ontology:Q502895 ) } } GROUP BY ?e } . FILTER ( ?v >= 15365 ) }
basketball association football
basketball association football
action atleast
action union
action find_reverse_tuple_counts
relation sport
type sport
type recurring sporting event
action find_reverse_tuple_counts
relation sport
type sport
type common name
value 15365
[[{'concept': 'recurring sporting event'}, {'concept': 'common name'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?v ) WHERE { ?z rdf:type ?y . VALUES ( ?y ) { ( ontology:recurring_sporting_event ) ( ontology:common_name ) } } GROUP BY ?e } . FILTER ( ?v >= 15365 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3572748 Q5648709
P27
Q15617994
USER
Which administrative territories are the native countriesof Hanna Konsek or Guillem Nicolau ?
OR((Q5648709,P27,c(Q15617994)), (Q3572748,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5648709
relation P27
action find
entity Q3572748
relation P27
type Q15617994
{'OR': [['Q5648709', 'P27', {'concept': 'Q15617994'}], ['Q3572748', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?p ) { ( resource:Q5648709 ) ( resource:Q3572748 ) } . ?p property:P27 ?o } . ?o rdf:type ontology:Q15617994 }
Guillem Nicolau Hanna Konsek
action filter_type
action union
action find
entity Hanna Konsek
relation country of citizenship
action find
entity Guillem Nicolau
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Hanna Konsek', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Guillem Nicolau', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?p ) { ( resource:Hanna_Konsek ) ( resource:Guillem_Nicolau ) } . ?p property:country_of_citizenship ?o } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q36
SYSTEM
Spain, Poland
Q29 Q36
OR((Q5648709,P27,c(Q15617994)), (Q3572748,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5648709
relation P27
action find
entity Q3572748
relation P27
type Q15617994
[ANSWERS]
{'OR': [['Q5648709', 'P27', {'concept': 'Q15617994'}], ['Q3572748', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?p ) { ( resource:Q5648709 ) ( resource:Q3572748 ) } . ?p property:P27 ?o } . ?o rdf:type ontology:Q15617994 }
Spain Poland
Spain Poland
action filter_type
action union
action find
entity Hanna Konsek
relation country of citizenship
action find
entity Guillem Nicolau
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Hanna Konsek', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Guillem Nicolau', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?p ) { ( resource:Hanna_Konsek ) ( resource:Guillem_Nicolau ) } . ?p property:country_of_citizenship ?o } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q276538
P17
Q781132
USER
Are Eurocorps present in those administrative territories ?
(Q276538,P17,Q29) (Q276538,P17,Q36)
action is_in
entity prev_answer
action find
entity Q276538
relation P17
['Q276538', 'P17', 'Q29'] ['Q276538', 'P17', 'Q36']
ASK WHERE { VALUES ( ?t ) { ( resource:Q29 ) ( resource:Q36 ) } . resource:Q276538 property:P17 ?t }
Eurocorps
action is_in
entity prev_answer
action find
entity Eurocorps
relation country
['Eurocorps', 'country', 'Spain'] ['Eurocorps', 'country', 'Poland']
ASK WHERE { VALUES ( ?t ) { ( resource:Spain ) ( resource:Poland ) } . resource:Eurocorps property:country ?t }
[]
military branch
SYSTEM
YES
(Q276538,P17,Q29) (Q276538,P17,Q36)
action is_in
entity prev_answer
action find
entity Q276538
relation P17
[ANSWER]
['Q276538', 'P17', 'Q29'] ['Q276538', 'P17', 'Q36']
ASK WHERE { VALUES ( ?t ) { ( resource:Q29 ) ( resource:Q36 ) } . resource:Q276538 property:P17 ?t }
Yes
action is_in
entity prev_answer
action find
entity Eurocorps
relation country
['Eurocorps', 'country', 'Spain'] ['Eurocorps', 'country', 'Poland']
ASK WHERE { VALUES ( ?t ) { ( resource:Spain ) ( resource:Poland ) } . resource:Eurocorps property:country ?t }
[]