Simple Question (Direct)
Simple Question
Q356871
P1066
Q502895
USER
Who was the teacher of Anderson Silva ?
(Q356871,P1066,c(Q502895))
action filter_type
action find
entity Q356871
relation P1066
type Q502895
['Q356871', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q356871 property:P1066 ?a . ?a rdf:type ontology:Q502895 }
Anderson Silva
action filter_type
action find
entity Anderson Silva
relation student of
type common name
['Anderson Silva', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Anderson_Silva property:student_of ?a . ?a rdf:type ontology:common_name }
[]
common name
Q549014
SYSTEM
Antônio Rodrigo Nogueira
Q549014
(Q356871,P1066,c(Q502895))
action filter_type
action find
entity Q356871
relation P1066
type Q502895
The teacher of Anderson Silva was Professor [ANSWER]
['Q356871', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q356871 property:P1066 ?a . ?a rdf:type ontology:Q502895 }
Antônio Rodrigo Nogueira
The teacher of Anderson Silva was Professor Antônio Rodrigo Nogueira
Antônio Rodrigo Nogueira
action filter_type
action find
entity Anderson Silva
relation student of
type common name
['Anderson Silva', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Anderson_Silva property:student_of ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q549014
P802
Q502895
USER
Who was the teacher of that one ?
(Q549014,P802,c(Q502895))
action filter_type
action find
entity Q549014
relation P802
type Q502895
['Q549014', 'P802', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q549014 property:P802 ?g . ?g rdf:type ontology:Q502895 }
Antônio Rodrigo Nogueira
action filter_type
action find
entity Antônio Rodrigo Nogueira
relation student
type common name
['Antônio Rodrigo Nogueira', 'student', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Antônio_Rodrigo_Nogueira property:student ?g . ?g rdf:type ontology:common_name }
[]
common name
Q356871
SYSTEM
Anderson Silva
Q356871
(Q549014,P802,c(Q502895))
action filter_type
action find
entity Q549014
relation P802
type Q502895
The teacher of that one was Silva [ANSWER]
['Q549014', 'P802', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q549014 property:P802 ?g . ?g rdf:type ontology:Q502895 }
Anderson Silva
The teacher of that one was Silva Anderson Silva
Anderson Silva
action filter_type
action find
entity Antônio Rodrigo Nogueira
relation student
type common name
['Antônio Rodrigo Nogueira', 'student', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Antônio_Rodrigo_Nogueira property:student ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q549014
P7
Q502895
USER
Who has Antônio Rodrigo Nogueira as their sibling ?
(c(Q502895),P7,Q549014)
action filter_type
action find
entity Q549014
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q549014']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . resource:Q549014 property:P7 ?f }
Antônio Rodrigo Nogueira
action filter_type
action find
entity Antônio Rodrigo Nogueira
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Antônio Rodrigo Nogueira']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . resource:Antônio_Rodrigo_Nogueira property:brother ?f }
[]
common name
Q2735668
SYSTEM
Antônio Rogério Nogueira
Q2735668
(c(Q502895),P7,Q549014)
action filter_type
action find
entity Q549014
relation P7
type Q502895
[ANSWER] has Antônio Rodrigo Nogueira as their sibling
[{'concept': 'Q502895'}, 'P7', 'Q549014']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . resource:Q549014 property:P7 ?f }
Antônio Rogério Nogueira
Antônio Rogério Nogueira has Antônio Rodrigo Nogueira as their sibling
Antônio Rogério Nogueira
action filter_type
action find
entity Antônio Rodrigo Nogueira
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Antônio Rodrigo Nogueira']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . resource:Antônio_Rodrigo_Nogueira property:brother ?f }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P3279
Q502895 Q1344963 Q15991303
USER
Which people were the statistical leader of exactly 3 world championships and association football leagues ?
(c(Q1344963)|c(Q15991303),P3279,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P3279
type Q502895
type Q1344963
action find_reverse_tuple_counts
relation P3279
type Q502895
type Q15991303
value 3
[[{'concept': 'Q1344963'}, {'concept': 'Q15991303'}], 'P3279', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?f ) WHERE { { ?r property:P3279 ?q . ?q rdf:type ontology:Q502895 . ?r rdf:type ontology:Q1344963 } UNION { ?r property:P3279 ?q . ?q rdf:type ontology:Q502895 . ?r rdf:type ontology:Q15991303 } } GROUP BY ?q } . FILTER ( ?f = 3 ) }
action equal
action union
action find_reverse_tuple_counts
relation statistical leader
type common name
type world championship
action find_reverse_tuple_counts
relation statistical leader
type common name
type association football league
value 3
[[{'concept': 'world championship'}, {'concept': 'association football league'}], 'statistical leader', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?f ) WHERE { { ?r property:statistical_leader ?q . ?q rdf:type ontology:common_name . ?r rdf:type ontology:world_championship } UNION { ?r property:statistical_leader ?q . ?q rdf:type ontology:common_name . ?r rdf:type ontology:association_football_league } } GROUP BY ?q } . FILTER ( ?f = 3 ) }
[]
common name world championship association football league
Q310519 Q152871
SYSTEM
Ulf Kirsten, Karl-Heinz Rummenigge
Q310519 Q152871
(c(Q1344963)|c(Q15991303),P3279,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P3279
type Q502895
type Q1344963
action find_reverse_tuple_counts
relation P3279
type Q502895
type Q15991303
value 3
[ANSWERS] were the statistical leader of exactly 3 world championships and association football leagues
[[{'concept': 'Q1344963'}, {'concept': 'Q15991303'}], 'P3279', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?f ) WHERE { { ?r property:P3279 ?q . ?q rdf:type ontology:Q502895 . ?r rdf:type ontology:Q1344963 } UNION { ?r property:P3279 ?q . ?q rdf:type ontology:Q502895 . ?r rdf:type ontology:Q15991303 } } GROUP BY ?q } . FILTER ( ?f = 3 ) }
Ulf Kirsten Karl-Heinz Rummenigge
Ulf Kirsten and Karl-Heinz Rummenigge were the statistical leader of exactly 3 world championships and association football leagues
Ulf Kirsten Karl-Heinz Rummenigge
action equal
action union
action find_reverse_tuple_counts
relation statistical leader
type common name
type world championship
action find_reverse_tuple_counts
relation statistical leader
type common name
type association football league
value 3
[[{'concept': 'world championship'}, {'concept': 'association football league'}], 'statistical leader', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?f ) WHERE { { ?r property:statistical_leader ?q . ?q rdf:type ontology:common_name . ?r rdf:type ontology:world_championship } UNION { ?r property:statistical_leader ?q . ?q rdf:type ontology:common_name . ?r rdf:type ontology:association_football_league } } GROUP BY ?q } . FILTER ( ?f = 3 ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q310519 Q152871
P54
Q1194951
USER
Which national sports teams are Ulf Kirsten and Karl-Heinz Rummenigge a member of ?
(Q310519,P54,c(Q1194951)) (Q152871,P54,c(Q1194951))
action union
action filter_type
action find
entity Q310519
relation P54
type Q1194951
action filter_type
action find
entity Q152871
relation P54
type Q1194951
['Q310519', 'P54', {'concept': 'Q1194951'}] ['Q152871', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?w WHERE { ?s property:P54 ?w . VALUES ( ?s ) { ( resource:Q310519 ) ( resource:Q152871 ) } }
Ulf Kirsten Karl-Heinz Rummenigge
action union
action filter_type
action find
entity Ulf Kirsten
relation member of sports team
type national sports team
action filter_type
action find
entity Karl-Heinz Rummenigge
relation member of sports team
type national sports team
['Ulf Kirsten', 'member of sports team', {'concept': 'national sports team'}] ['Karl-Heinz Rummenigge', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?w WHERE { ?s property:member_of_sports_team ?w . VALUES ( ?s ) { ( resource:Ulf_Kirsten ) ( resource:Karl-Heinz_Rummenigge ) } }
[]
national sports team
Q43310 Q43310 Q152424
SYSTEM
Germany national football team for 1st, 2nd, East Germany national football team for 3rd
Q43310 Q152424 Q822990 Q43310
(Q310519,P54,c(Q1194951)) (Q152871,P54,c(Q1194951))
action union
action filter_type
action find
entity Q310519
relation P54
type Q1194951
action filter_type
action find
entity Q152871
relation P54
type Q1194951
[ANSWERS]
['Q310519', 'P54', {'concept': 'Q1194951'}] ['Q152871', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?w WHERE { ?s property:P54 ?w . VALUES ( ?s ) { ( resource:Q310519 ) ( resource:Q152871 ) } }
Germany national football team East Germany national football team Germany national football B team Germany national football team
Team Germany national football team, Germany national football team and East Germany national football team are Ulf Kirsten and Karl-Heinz Rummenigge a member of
Germany national football team Germany national football team East Germany national football team
action union
action filter_type
action find
entity Ulf Kirsten
relation member of sports team
type national sports team
action filter_type
action find
entity Karl-Heinz Rummenigge
relation member of sports team
type national sports team
['Ulf Kirsten', 'member of sports team', {'concept': 'national sports team'}] ['Karl-Heinz Rummenigge', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?w WHERE { ?s property:member_of_sports_team ?w . VALUES ( ?s ) { ( resource:Ulf_Kirsten ) ( resource:Karl-Heinz_Rummenigge ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q152424
P710
Q16510064
USER
Which sporting event did that national sports team participate in ?
(c(Q16510064),P710,Q152424)
action filter_type
action find_reverse
entity Q152424
relation P710
type Q16510064
[{'concept': 'Q16510064'}, 'P710', 'Q152424']
SELECT DISTINCT ?i WHERE { ?i property:P710 resource:Q152424 . ?i rdf:type ontology:Q16510064 }
East Germany national football team
action filter_type
action find_reverse
entity East Germany national football team
relation participant
type sporting event
[{'concept': 'sporting event'}, 'participant', 'East Germany national football team']
SELECT DISTINCT ?i WHERE { ?i property:participant resource:East_Germany_national_football_team . ?i rdf:type ontology:sporting_event }
[]
sporting event
Clarification for simple ques.
Q43310
SYSTEM
Did you mean Germany national football team ?
Q43310 Q43310 Q152424
(c(Q16510064),P710,Q43310) (c(Q16510064),P710,Q43310) (c(Q16510064),P710,Q152424)
[ANSWER]
[{'concept': 'Q16510064'}, 'P710', 'Q43310'] [{'concept': 'Q16510064'}, 'P710', 'Q43310'] [{'concept': 'Q16510064'}, 'P710', 'Q152424']
SELECT DISTINCT ?i WHERE { ?i property:P710 resource:Q152424 . ?i rdf:type ontology:Q16510064 }
Germany national football team Germany national football team East Germany national football team
Did you mean Germany national football team ?
Germany national football team
[{'concept': 'sporting event'}, 'participant', 'Germany national football team'] [{'concept': 'sporting event'}, 'participant', 'Germany national football team'] [{'concept': 'sporting event'}, 'participant', 'East Germany national football team']
SELECT DISTINCT ?i WHERE { ?i property:participant resource:East_Germany_national_football_team . ?i rdf:type ontology:sporting_event }
[]
Simple Question (Coreferenced)
USER
No, I meant East Germany national football team. Could you tell me the answer for that?
(c(Q16510064),P710,Q152424)
Q152424
[{'concept': 'Q16510064'}, 'P710', 'Q152424']
[{'concept': 'sporting event'}, 'participant', 'East Germany national football team']
[]
Q159181
SYSTEM
football at the 1972 Summer Olympics
Q159181
(c(Q16510064),P710,Q152424)
action filter_type
action find_reverse
entity Q152424
relation P710
type Q16510064
That national sports team participated in [ANSWER]
[{'concept': 'Q16510064'}, 'P710', 'Q152424']
SELECT DISTINCT ?i WHERE { ?i property:P710 resource:Q152424 . ?i rdf:type ontology:Q16510064 }
football at the 1972 Summer Olympics
That national sports team participated in football at the 1972 Summer Olympics
football at the 1972 Summer Olympics
action filter_type
action find_reverse
entity East Germany national football team
relation participant
type sporting event
[{'concept': 'sporting event'}, 'participant', 'East Germany national football team']
SELECT DISTINCT ?i WHERE { ?i property:participant resource:East_Germany_national_football_team . ?i rdf:type ontology:sporting_event }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q43310 Q543842
P1923
Q15275719
USER
How many recurring events did Germany national football team and South Korea national football team compete in ?
(c(Q15275719),P1923,Q43310) (c(Q15275719),P1923,Q543842)
action count
action intersection
action filter_type
action find_reverse
entity Q43310
relation P1923
type Q15275719
action filter_type
action find_reverse
entity Q543842
relation P1923
type Q15275719
[{'concept': 'Q15275719'}, 'P1923', 'Q43310'] [{'concept': 'Q15275719'}, 'P1923', 'Q543842']
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { ?m property:P1923 resource:Q43310 . ?m rdf:type ontology:Q15275719 . ?m rdf:type ontology:Q15275719 . ?m property:P1923 resource:Q543842 }
Germany national football team South Korea national football team
action count
action intersection
action filter_type
action find_reverse
entity Germany national football team
relation participating teams
type recurring event
action filter_type
action find_reverse
entity South Korea national football team
relation participating teams
type recurring event
[{'concept': 'recurring event'}, 'participating teams', 'Germany national football team'] [{'concept': 'recurring event'}, 'participating teams', 'South Korea national football team']
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { ?m property:participating_teams resource:Germany_national_football_team . ?m rdf:type ontology:recurring_event . ?m rdf:type ontology:recurring_event . ?m property:participating_teams resource:South_Korea_national_football_team }
[]
recurring event
SYSTEM
9
Q176883 Q37285 Q101751 Q132529 Q47735 Q46938 Q131075 Q101730 Q79859
(c(Q15275719),P1923,Q43310) (c(Q15275719),P1923,Q543842)
action count
action intersection
action filter_type
action find_reverse
entity Q43310
relation P1923
type Q15275719
action filter_type
action find_reverse
entity Q543842
relation P1923
type Q15275719
[ANSWER]
[{'concept': 'Q15275719'}, 'P1923', 'Q43310'] [{'concept': 'Q15275719'}, 'P1923', 'Q543842']
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { ?m property:P1923 resource:Q43310 . ?m rdf:type ontology:Q15275719 . ?m rdf:type ontology:Q15275719 . ?m property:P1923 resource:Q543842 }
2010 FIFA World Cup 2006 FIFA World Cup 1994 FIFA World Cup 1990 FIFA World Cup 2002 FIFA World Cup 1986 FIFA World Cup 1954 FIFA World Cup 1998 FIFA World Cup 2014 FIFA World Cup
9
action count
action intersection
action filter_type
action find_reverse
entity Germany national football team
relation participating teams
type recurring event
action filter_type
action find_reverse
entity South Korea national football team
relation participating teams
type recurring event
[{'concept': 'recurring event'}, 'participating teams', 'Germany national football team'] [{'concept': 'recurring event'}, 'participating teams', 'South Korea national football team']
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { ?m property:participating_teams resource:Germany_national_football_team . ?m rdf:type ontology:recurring_event . ?m rdf:type ontology:recurring_event . ?m property:participating_teams resource:South_Korea_national_football_team }
[]