Simple Question (Direct)
Simple Question
Q284784
P1344
Q1375427
USER
What did James McClean participate in ?
(Q284784,P1344,c(Q1375427))
action filter_type
action find
entity Q284784
relation P1344
type Q1375427
['Q284784', 'P1344', {'concept': 'Q1375427'}]
SELECT DISTINCT ?g WHERE { resource:Q284784 property:P1344 ?g . ?g rdf:type ontology:Q1375427 }
James McClean
action filter_type
action find
entity James McClean
relation participant of
type European Championship
['James McClean', 'participant of', {'concept': 'European Championship'}]
SELECT DISTINCT ?g WHERE { resource:James_McClean property:participant_of ?g . ?g rdf:type ontology:European_Championship }
[]
European Championship
Q22669
SYSTEM
UEFA Euro 2012
Q22669
(Q284784,P1344,c(Q1375427))
action filter_type
action find
entity Q284784
relation P1344
type Q1375427
James McClean participated in [ANSWER]
['Q284784', 'P1344', {'concept': 'Q1375427'}]
SELECT DISTINCT ?g WHERE { resource:Q284784 property:P1344 ?g . ?g rdf:type ontology:Q1375427 }
UEFA Euro 2012
James McClean participated in UEFA Euro 2012
UEFA Euro 2012
action filter_type
action find
entity James McClean
relation participant of
type European Championship
['James McClean', 'participant of', {'concept': 'European Championship'}]
SELECT DISTINCT ?g WHERE { resource:James_McClean property:participant_of ?g . ?g rdf:type ontology:European_Championship }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q22669
P641
Q349
USER
Which sport was that European Championship a part of ?
(Q22669,P641,c(Q349))
action filter_type
action find
entity Q22669
relation P641
type Q349
['Q22669', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q349 . resource:Q22669 property:P641 ?u }
UEFA Euro 2012
action filter_type
action find
entity UEFA Euro 2012
relation sport
type sport
['UEFA Euro 2012', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:sport . resource:UEFA_Euro_2012 property:sport ?u }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q22669,P641,c(Q349))
action filter_type
action find
entity Q22669
relation P641
type Q349
The [ANSWER] was that European Championship a part of
['Q22669', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q349 . resource:Q22669 property:P641 ?u }
association football
The association football was that European Championship a part of
association football
action filter_type
action find
entity UEFA Euro 2012
relation sport
type sport
['UEFA Euro 2012', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:sport . resource:UEFA_Euro_2012 property:sport ?u }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5992939
Q349
USER
And how about Manuel Fernández Mora?
(Q5992939,P641,c(Q349))
action filter_type
action find
entity Q5992939
relation P641
type Q349
['Q5992939', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?k WHERE { resource:Q5992939 property:P641 ?k . ?k rdf:type ontology:Q349 }
Manuel Fernández Mora
action filter_type
action find
entity Manuel Fernández Mora
relation sport
type sport
['Manuel Fernández Mora', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?k WHERE { resource:Manuel_Fernández_Mora property:sport ?k . ?k rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q5992939,P641,c(Q349))
action filter_type
action find
entity Q5992939
relation P641
type Q349
[ANSWER]
['Q5992939', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?k WHERE { resource:Q5992939 property:P641 ?k . ?k rdf:type ontology:Q349 }
association football
association football
action filter_type
action find
entity Manuel Fernández Mora
relation sport
type sport
['Manuel Fernández Mora', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?k WHERE { resource:Manuel_Fernández_Mora property:sport ?k . ?k rdf:type ontology:sport }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q131239 Q22669
P1923
Q1194951
USER
Which national sports teams were participants in UEFA Euro 2012 or UEFA Euro 2000 ?
OR((Q22669,P1923,c(Q1194951)), (Q131239,P1923,c(Q1194951)))
action filter_type
action union
action find
entity Q22669
relation P1923
action find
entity Q131239
relation P1923
type Q1194951
{'OR': [['Q22669', 'P1923', {'concept': 'Q1194951'}], ['Q131239', 'P1923', {'concept': 'Q1194951'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?w ) { ( resource:Q22669 ) ( resource:Q131239 ) } . ?w property:P1923 ?z } . ?z rdf:type ontology:Q1194951 }
UEFA Euro 2000 UEFA Euro 2012
action filter_type
action union
action find
entity UEFA Euro 2012
relation participating teams
action find
entity UEFA Euro 2000
relation participating teams
type national sports team
{'OR': [['UEFA Euro 2012', 'participating teams', {'concept': 'national sports team'}], ['UEFA Euro 2000', 'participating teams', {'concept': 'national sports team'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?w ) { ( resource:UEFA_Euro_2012 ) ( resource:UEFA_Euro_2000 ) } . ?w property:participating_teams ?z } . ?z rdf:type ontology:national_sports_team }
[]
national sports team
Q483856 Q726080 Q483868 Q166196 Q43310 Q184387 Q47774 Q188363 Q267245 Q42267
SYSTEM
Some of them are Turkey national football team, Russia national football team, Czech Republic national football team, Poland national football team, Germany national football team, Norway national football team, France national football team, Yugoslavia national football team, Portugal national football team, Spain national football team
Q134479 Q267245 Q163547 Q47050 Q42267 Q166776 Q47762 Q160826 Q166196 Q483868 Q726080 Q170403 Q188363 Q131785 Q43310 Q676899 Q184387 Q172221 Q168397 Q483856 Q134925 Q47774
OR((Q22669,P1923,c(Q1194951)), (Q131239,P1923,c(Q1194951)))
action filter_type
action union
action find
entity Q22669
relation P1923
action find
entity Q131239
relation P1923
type Q1194951
[ANSWERS] were participants in UEFA Euro 2012 or UEFA Euro 2000
{'OR': [['Q22669', 'P1923', {'concept': 'Q1194951'}], ['Q131239', 'P1923', {'concept': 'Q1194951'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?w ) { ( resource:Q22669 ) ( resource:Q131239 ) } . ?w property:P1923 ?z } . ?z rdf:type ontology:Q1194951 }
Croatia national football team Portugal national football team Republic of Ireland national football team Netherlands national football team Spain national football team Belgium national football team England national football team Sweden national football team Poland national football team Czech Republic national football team Russia national football team Ukraine national football team Yugoslavia national football team Denmark national football team Germany national football team Italy national football team Norway national football team Slovenia national football team Romania national football team Turkey national football team Greece national football team France national football team
Turkey national football team, Russia national football team, Czech Republic national football team, Poland national football team, Germany national football team, Norway national football team, France national football team, Yugoslavia national football team, Portugal national football team and Spain national football team were participants in UEFA Euro 2012 or UEFA Euro 2000
Turkey national football team Russia national football team Czech Republic national football team Poland national football team Germany national football team Norway national football team France national football team Yugoslavia national football team Portugal national football team Spain national football team
action filter_type
action union
action find
entity UEFA Euro 2012
relation participating teams
action find
entity UEFA Euro 2000
relation participating teams
type national sports team
{'OR': [['UEFA Euro 2012', 'participating teams', {'concept': 'national sports team'}], ['UEFA Euro 2000', 'participating teams', {'concept': 'national sports team'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?w ) { ( resource:UEFA_Euro_2012 ) ( resource:UEFA_Euro_2000 ) } . ?w property:participating_teams ?z } . ?z rdf:type ontology:national_sports_team }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1923
Q1194951 Q15275719
USER
How many recurring events did exactly 24 national sports teams participate in ?
(c(Q15275719),P1923,c(Q1194951))
action count
action equal
action find_tuple_counts
relation P1923
type Q15275719
type Q1194951
value 24
[{'concept': 'Q15275719'}, 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { FILTER ( ?d = 24 ) . { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?d ) WHERE { ?j property:P1923 ?t . ?t rdf:type ontology:Q1194951 . ?j rdf:type ontology:Q15275719 } GROUP BY ?j } }
action count
action equal
action find_tuple_counts
relation participating teams
type recurring event
type national sports team
value 24
[{'concept': 'recurring event'}, 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { FILTER ( ?d = 24 ) . { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?d ) WHERE { ?j property:participating_teams ?t . ?t rdf:type ontology:national_sports_team . ?j rdf:type ontology:recurring_event } GROUP BY ?j } }
[]
national sports team recurring event
SYSTEM
4
Q46938 Q46934 Q132529 Q101751
(c(Q15275719),P1923,c(Q1194951))
action count
action equal
action find_tuple_counts
relation P1923
type Q15275719
type Q1194951
value 24
[ANSWER]
[{'concept': 'Q15275719'}, 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { FILTER ( ?d = 24 ) . { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?d ) WHERE { ?j property:P1923 ?t . ?t rdf:type ontology:Q1194951 . ?j rdf:type ontology:Q15275719 } GROUP BY ?j } }
1986 FIFA World Cup 1982 FIFA World Cup 1990 FIFA World Cup 1994 FIFA World Cup
4
action count
action equal
action find_tuple_counts
relation participating teams
type recurring event
type national sports team
value 24
[{'concept': 'recurring event'}, 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { FILTER ( ?d = 24 ) . { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?d ) WHERE { ?j property:participating_teams ?t . ?t rdf:type ontology:national_sports_team . ?j rdf:type ontology:recurring_event } GROUP BY ?j } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q43310
P1346
Q16466010 Q13406554
USER
How many association football matches or sport competitions were Germany national football team decalred as a victor of ?
(c(Q16466010),P1346,Q43310) (c(Q13406554),P1346,Q43310)
action count
action union
action filter_type
action find_reverse
entity Q43310
relation P1346
type Q16466010
action filter_type
action find_reverse
entity Q43310
relation P1346
type Q13406554
[{'concept': 'Q16466010'}, 'P1346', 'Q43310'] [{'concept': 'Q13406554'}, 'P1346', 'Q43310']
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { VALUES ( ?a ) { ( ontology:Q16466010 ) ( ontology:Q13406554 ) } . ?p rdf:type ?a }
Germany national football team
action count
action union
action filter_type
action find_reverse
entity Germany national football team
relation winner
type association football match
action filter_type
action find_reverse
entity Germany national football team
relation winner
type sport competition
[{'concept': 'association football match'}, 'winner', 'Germany national football team'] [{'concept': 'sport competition'}, 'winner', 'Germany national football team']
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { VALUES ( ?a ) { ( ontology:association_football_match ) ( ontology:sport_competition ) } . ?p rdf:type ?a }
[]
association football match sport competition
SYSTEM
6
Q24201910 Q17329128 Q15926885 Q24202134 Q24201929 Q24202150
(c(Q16466010),P1346,Q43310) (c(Q13406554),P1346,Q43310)
action count
action union
action filter_type
action find_reverse
entity Q43310
relation P1346
type Q16466010
action filter_type
action find_reverse
entity Q43310
relation P1346
type Q13406554
[ANSWER]
[{'concept': 'Q16466010'}, 'P1346', 'Q43310'] [{'concept': 'Q13406554'}, 'P1346', 'Q43310']
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { VALUES ( ?a ) { ( ontology:Q16466010 ) ( ontology:Q13406554 ) } . ?p rdf:type ?a }
Germany v Ukraine Brazil v Germany 2014 FIFA World Cup Final Germany v Slovakia Northern Ireland v Germany Germany vs. Italy
6
action count
action union
action filter_type
action find_reverse
entity Germany national football team
relation winner
type association football match
action filter_type
action find_reverse
entity Germany national football team
relation winner
type sport competition
[{'concept': 'association football match'}, 'winner', 'Germany national football team'] [{'concept': 'sport competition'}, 'winner', 'Germany national football team']
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { VALUES ( ?a ) { ( ontology:association_football_match ) ( ontology:sport_competition ) } . ?p rdf:type ?a }
[]
Logical Reasoning (All)
Logical|Difference|Single_Relation
Q2575878 Q726080
P1344
Q15275719
USER
Which recurring events did Russia national football team but not Augustine Eguavoen take part in ?
AND((Q726080,P1344,c(Q15275719)), NOT((Q2575878,P1344,c(Q15275719))))
action filter_type
action difference
action find
entity Q726080
relation P1344
action find
entity Q2575878
relation P1344
type Q15275719
{'AND': [['Q726080', 'P1344', {'concept': 'Q15275719'}], {'NOT': [['Q2575878', 'P1344', {'concept': 'Q15275719'}]]}]}
SELECT DISTINCT ?p WHERE { resource:Q726080 property:P1344 ?p . FILTER NOT EXISTS { resource:Q2575878 property:P1344 ?p } . ?p rdf:type ontology:Q15275719 }
Augustine Eguavoen Russia national football team
action filter_type
action difference
action find
entity Russia national football team
relation participant of
action find
entity Augustine Eguavoen
relation participant of
type recurring event
{'AND': [['Russia national football team', 'participant of', {'concept': 'recurring event'}], {'NOT': [['Augustine Eguavoen', 'participant of', {'concept': 'recurring event'}]]}]}
SELECT DISTINCT ?p WHERE { resource:Russia_national_football_team property:participant_of ?p . FILTER NOT EXISTS { resource:Augustine_Eguavoen property:participant_of ?p } . ?p rdf:type ontology:recurring_event }
[]
recurring event
Q47735 Q79859
SYSTEM
2002 FIFA World Cup, 2014 FIFA World Cup
Q47735 Q79859
AND((Q726080,P1344,c(Q15275719)), NOT((Q2575878,P1344,c(Q15275719))))
action filter_type
action difference
action find
entity Q726080
relation P1344
action find
entity Q2575878
relation P1344
type Q15275719
[ANSWERS] Russia national football team but not Augustine Eguavoen took in part
{'AND': [['Q726080', 'P1344', {'concept': 'Q15275719'}], {'NOT': [['Q2575878', 'P1344', {'concept': 'Q15275719'}]]}]}
SELECT DISTINCT ?p WHERE { resource:Q726080 property:P1344 ?p . FILTER NOT EXISTS { resource:Q2575878 property:P1344 ?p } . ?p rdf:type ontology:Q15275719 }
2002 FIFA World Cup 2014 FIFA World Cup
2002 FIFA World Cup and 2014 FIFA World Cup Russia national football team but not Augustine Eguavoen took in part
2002 FIFA World Cup 2014 FIFA World Cup
action filter_type
action difference
action find
entity Russia national football team
relation participant of
action find
entity Augustine Eguavoen
relation participant of
type recurring event
{'AND': [['Russia national football team', 'participant of', {'concept': 'recurring event'}], {'NOT': [['Augustine Eguavoen', 'participant of', {'concept': 'recurring event'}]]}]}
SELECT DISTINCT ?p WHERE { resource:Russia_national_football_team property:participant_of ?p . FILTER NOT EXISTS { resource:Augustine_Eguavoen property:participant_of ?p } . ?p rdf:type ontology:recurring_event }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q184387
P1344
Q15275719
USER
How many recurring events did Norway national football team participate in ?
(Q184387,P1344,c(Q15275719))
action count
action filter_type
action find
entity Q184387
relation P1344
type Q15275719
['Q184387', 'P1344', {'concept': 'Q15275719'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { resource:Q184387 property:P1344 ?p . ?p rdf:type ontology:Q15275719 }
Norway national football team
action count
action filter_type
action find
entity Norway national football team
relation participant of
type recurring event
['Norway national football team', 'participant of', {'concept': 'recurring event'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { resource:Norway_national_football_team property:participant_of ?p . ?p rdf:type ontology:recurring_event }
[]
recurring event
SYSTEM
3
Q131591 Q101751 Q101730
(Q184387,P1344,c(Q15275719))
action count
action filter_type
action find
entity Q184387
relation P1344
type Q15275719
[ANSWER]
['Q184387', 'P1344', {'concept': 'Q15275719'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { resource:Q184387 property:P1344 ?p . ?p rdf:type ontology:Q15275719 }
1938 FIFA World Cup 1994 FIFA World Cup 1998 FIFA World Cup
3
action count
action filter_type
action find
entity Norway national football team
relation participant of
type recurring event
['Norway national football team', 'participant of', {'concept': 'recurring event'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { resource:Norway_national_football_team property:participant_of ?p . ?p rdf:type ontology:recurring_event }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q184387
P1532
Q15617994
USER
Which administrative territory is played by that national sports team ?
action filter_type
action find
entity Q184387
relation P1532
type Q15617994
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . resource:Q184387 property:P1532 ?i }
Norway national football team
action filter_type
action find
entity Norway national football team
relation country for sport
type designation for an administrative territorial entity
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Norway_national_football_team property:country_for_sport ?i }
[]
designation for an administrative territorial entity
Q20
SYSTEM
Norway
Q20
action filter_type
action find
entity Q184387
relation P1532
type Q15617994
Tournament [ANSWER] is played by that national sports team
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . resource:Q184387 property:P1532 ?i }
Norway
Tournament Norway is played by that national sports team
Norway
action filter_type
action find
entity Norway national football team
relation country for sport
type designation for an administrative territorial entity
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Norway_national_football_team property:country_for_sport ?i }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q51206 Q184387
P47 P1532
Q15617994
USER
Which administrative territories did Norway national football team play for or share the border with Civitaluparella ?
OR((Q184387,P1532,c(Q15617994)), (Q51206,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q184387
relation P1532
action find
entity Q51206
relation P47
type Q15617994
{'OR': [['Q184387', 'P1532', {'concept': 'Q15617994'}], ['Q51206', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q184387 property:P1532 ?b } UNION { resource:Q51206 property:P47 ?b } } . ?b rdf:type ontology:Q15617994 }
Civitaluparella Norway national football team
action filter_type
action union
action find
entity Norway national football team
relation country for sport
action find
entity Civitaluparella
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Norway national football team', 'country for sport', {'concept': 'designation for an administrative territorial entity'}], ['Civitaluparella', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Norway_national_football_team property:country_for_sport ?b } UNION { resource:Civitaluparella property:shares_border_with ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q51187 Q51261 Q51264 Q3562 Q3560 Q20 Q51251 Q3511
SYSTEM
Borrello, Pennadomo, Pizzoferrato, Montebello sul Sangro, Montelapiano, Norway, Montenerodomo, Fallo
Q51187 Q51261 Q51264 Q3562 Q3560 Q20 Q51251 Q3511
OR((Q184387,P1532,c(Q15617994)), (Q51206,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q184387
relation P1532
action find
entity Q51206
relation P47
type Q15617994
Norway national football team played for Northern [ANSWERS]
{'OR': [['Q184387', 'P1532', {'concept': 'Q15617994'}], ['Q51206', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q184387 property:P1532 ?b } UNION { resource:Q51206 property:P47 ?b } } . ?b rdf:type ontology:Q15617994 }
Borrello Pennadomo Pizzoferrato Montebello sul Sangro Montelapiano Norway Montenerodomo Fallo
Norway national football team played for Northern Borrello, Pennadomo, Pizzoferrato, Montebello sul Sangro, Montelapiano, Norway, Montenerodomo and Fallo
Borrello Pennadomo Pizzoferrato Montebello sul Sangro Montelapiano Norway Montenerodomo Fallo
action filter_type
action union
action find
entity Norway national football team
relation country for sport
action find
entity Civitaluparella
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Norway national football team', 'country for sport', {'concept': 'designation for an administrative territorial entity'}], ['Civitaluparella', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Norway_national_football_team property:country_for_sport ?b } UNION { resource:Civitaluparella property:shares_border_with ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q51206
P17
Q15617994
USER
Which administrative territory is Civitaluparella situated in ?
(Q51206,P17,c(Q15617994))
action filter_type
action find
entity Q51206
relation P17
type Q15617994
['Q51206', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q51206 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
Civitaluparella
action filter_type
action find
entity Civitaluparella
relation country
type designation for an administrative territorial entity
['Civitaluparella', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Civitaluparella property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q51206,P17,c(Q15617994))
action filter_type
action find
entity Q51206
relation P17
type Q15617994
Civitaluparella is situated in [ANSWER]
['Q51206', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q51206 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
Italy
Civitaluparella is situated in Italy
Italy
action filter_type
action find
entity Civitaluparella
relation country
type designation for an administrative territorial entity
['Civitaluparella', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Civitaluparella property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6207554
Q15617994
USER
And also tell me about Jockey Hollow?
(Q6207554,P17,c(Q15617994))
action filter_type
action find
entity Q6207554
relation P17
type Q15617994
['Q6207554', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . resource:Q6207554 property:P17 ?w }
Jockey Hollow
action filter_type
action find
entity Jockey Hollow
relation country
type designation for an administrative territorial entity
['Jockey Hollow', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Jockey_Hollow property:country ?w }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q6207554,P17,c(Q15617994))
action filter_type
action find
entity Q6207554
relation P17
type Q15617994
[ANSWER]
['Q6207554', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . resource:Q6207554 property:P17 ?w }
United States of America
United States of America
action filter_type
action find
entity Jockey Hollow
relation country
type designation for an administrative territorial entity
['Jockey Hollow', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Jockey_Hollow property:country ?w }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q15617994 Q20667921 Q486972
USER
Which administrative territories have approximately 1 french administrative divisions and human settlements as their county seat ?
(c(Q20667921)|c(Q486972),P1376,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
value 1
[[{'concept': 'Q20667921'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?z = 1 ) . { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?z ) WHERE { VALUES ( ?g ) { ( ontology:Q486972 ) ( ontology:Q20667921 ) } . ?x rdf:type ?g } GROUP BY ?y } }
action approx
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
value 1
[[{'concept': 'type of french administrative division'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?z = 1 ) . { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?z ) WHERE { VALUES ( ?g ) { ( ontology:human_settlement ) ( ontology:type_of_french_administrative_division ) } . ?x rdf:type ?g } GROUP BY ?y } }
[]
designation for an administrative territorial entity type of french administrative division human settlement
Q965 Q12753 Q12584
SYSTEM
Burkina Faso, Seine-et-Marne, Maine-et-Loire
Q12631 Q3368 Q1111401 Q3044731 Q12689 Q3377 Q3372 Q3093 Q2528268 Q12594 Q12574 Q12792 Q12700 Q12709 Q12642 Q3216 Q3194 Q541589 Q12804 Q12808 Q3326 Q3286 Q3266 Q3105 Q33788 Q12740 Q12745 Q12779 Q12607 Q2281221 Q12694 Q12515 Q12517 Q3364 Q3148 Q492437 Q12675 Q12589 Q12584 Q12580 Q3131 Q12788 Q12784 Q12782 Q12736 Q12657 Q12652 Q12556 Q12816 Q3353 Q3357 Q492430 Q3184 Q2900529 Q1999970 Q155019 Q107426 Q12661 Q1270623 Q965 Q3125 Q3120 Q3110307 Q12722 Q12553 Q12620 Q12626 Q12543 Q12563 Q426025 Q3349 Q3083 Q3240 Q3249 Q12761 Q12765 Q3334 Q12572 Q12576 Q12578 Q12679 Q3113 Q12758 Q12753 Q12751 Q12564
(c(Q20667921)|c(Q486972),P1376,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
value 1
[ANSWERS] have approximately 1 french administrative divisions and human settlements as their county seat
[[{'concept': 'Q20667921'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?z = 1 ) . { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?z ) WHERE { VALUES ( ?g ) { ( ontology:Q486972 ) ( ontology:Q20667921 ) } . ?x rdf:type ?g } GROUP BY ?y } }
Meuse Essonne Kispest District Guyane Pas-de-Calais Eure-et-Loir Eure Aisne Mont-Blanc Marne Loiret Vaucluse Hautes-Pyrénées Pyrénées-Orientales Morbihan Aveyron Aube Ems-Supérieur Vienne Haute-Vienne Corrèze Cher Charente Vosges New Caledonia Sarthe Savoie Tarn-et-Garonne Haute-Marne Principality of Orange Puy-de-Dôme Gard Gers Drôme Ardèche Bouches-du-Weser Oise Manche Maine-et-Loire Lozère Alpes-de-Haute-Provence Val-de-Marne Val-d'Oise Territoire de Belfort Saône-et-Loire Nièvre Moselle Indre-et-Loire Yonne Creuse Dordogne Bouches-de-l'Elbe Ariège Bezirk Lothringen Upper Alsace Duchy of Lorraine Anjou Nord Meurthe Burkina Faso Hautes-Alpes Jura Golo Haut-Rhin Indre Mayenne Meurthe-et-Moselle Hauts-de-Seine Landes Duchy of Savoy Côtes-d'Armor Ain Bouches-du-Rhône Calvados Seine-Saint-Denis Deux-Sèvres Haute-Corse Haute-Loire Lot Lot-et-Garonne Orne Allier Seine-Maritime Seine-et-Marne Haute-Savoie Loir-et-Cher
Burkina Faso, Seine-et-Marne and Maine-et-Loire have approximately 1 french administrative divisions and human settlements as their county seat
Burkina Faso Seine-et-Marne Maine-et-Loire
action approx
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
value 1
[[{'concept': 'type of french administrative division'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?z = 1 ) . { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?z ) WHERE { VALUES ( ?g ) { ( ontology:human_settlement ) ( ontology:type_of_french_administrative_division ) } . ?x rdf:type ?g } GROUP BY ?y } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P122
Q43229 Q12737077 Q15617994
USER
Which administrative territories have max number of organizations and occupations as the form of government ?
(c(Q15617994),P122,c(Q43229)|c(Q12737077))
action argmax
action union
action find_tuple_counts
relation P122
type Q15617994
type Q43229
action find_tuple_counts
relation P122
type Q15617994
type Q12737077
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q43229'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) ?u WHERE { ?n rdf:type ?o . VALUES ( ?o ) { ( ontology:Q43229 ) ( ontology:Q12737077 ) } } GROUP BY ?u } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) ?s WHERE { { ?s rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q43229 . ?s property:P122 ?j } UNION { ?s rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q12737077 . ?s property:P122 ?j } } GROUP BY ?s } . FILTER ( ?f = ?x ) }
action argmax
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type organization
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type occupation
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'organization'}, {'concept': 'occupation'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) ?u WHERE { ?n rdf:type ?o . VALUES ( ?o ) { ( ontology:organization ) ( ontology:occupation ) } } GROUP BY ?u } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) ?s WHERE { { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:organization . ?s property:basic_form_of_government ?j } UNION { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:occupation . ?s property:basic_form_of_government ?j } } GROUP BY ?s } . FILTER ( ?f = ?x ) }
[]
organization occupation designation for an administrative territorial entity
Q541991 Q238 Q228
SYSTEM
Hummelfeld, San Marino, Andorra
Q541991 Q238 Q228
(c(Q15617994),P122,c(Q43229)|c(Q12737077))
action argmax
action union
action find_tuple_counts
relation P122
type Q15617994
type Q43229
action find_tuple_counts
relation P122
type Q15617994
type Q12737077
[ANSWERS] have max number of organizations and occupations as the form of government
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q43229'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) ?u WHERE { ?n rdf:type ?o . VALUES ( ?o ) { ( ontology:Q43229 ) ( ontology:Q12737077 ) } } GROUP BY ?u } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) ?s WHERE { { ?s rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q43229 . ?s property:P122 ?j } UNION { ?s rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q12737077 . ?s property:P122 ?j } } GROUP BY ?s } . FILTER ( ?f = ?x ) }
Hummelfeld San Marino Andorra
Hummelfeld, San Marino and Andorra have max number of organizations and occupations as the form of government
Hummelfeld San Marino Andorra
action argmax
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type organization
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type occupation
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'organization'}, {'concept': 'occupation'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) ?u WHERE { ?n rdf:type ?o . VALUES ( ?o ) { ( ontology:organization ) ( ontology:occupation ) } } GROUP BY ?u } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) ?s WHERE { { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:organization . ?s property:basic_form_of_government ?j } UNION { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:occupation . ?s property:basic_form_of_government ?j } } GROUP BY ?s } . FILTER ( ?f = ?x ) }
[]