Simple Question (Direct)
Simple Question
Q18588345
P1344
Q18608583
USER
What recurring sporting events did Thomas Tetz participate in ?
(Q18588345,P1344,c(Q18608583))
action filter_type
action find
entity Q18588345
relation P1344
type Q18608583
['Q18588345', 'P1344', {'concept': 'Q18608583'}]
SELECT DISTINCT ?h WHERE { resource:Q18588345 property:P1344 ?h . ?h rdf:type ontology:Q18608583 }
Thomas Tetz
action filter_type
action find
entity Thomas Tetz
relation participant of
type recurring sporting event
['Thomas Tetz', 'participant of', {'concept': 'recurring sporting event'}]
SELECT DISTINCT ?h WHERE { resource:Thomas_Tetz property:participant_of ?h . ?h rdf:type ontology:recurring_sporting_event }
[]
recurring sporting event
Q18577462 Q18579425 Q18579429
SYSTEM
2001 Iditarod, 2002 Yukon Quest, 2004 Yukon Quest
Q18579429 Q18579419 Q18579422 Q18577462 Q18579421 Q18579427 Q18579425
(Q18588345,P1344,c(Q18608583))
action filter_type
action find
entity Q18588345
relation P1344
type Q18608583
Thomas Tetz participated in [ANSWERS]
['Q18588345', 'P1344', {'concept': 'Q18608583'}]
SELECT DISTINCT ?h WHERE { resource:Q18588345 property:P1344 ?h . ?h rdf:type ontology:Q18608583 }
2004 Yukon Quest 1998 Yukon Quest 2000 Yukon Quest 2001 Iditarod 1999 Yukon Quest 2003 Yukon Quest 2002 Yukon Quest
Thomas Tetz participated in 2001 Iditarod, 2002 Yukon Quest and 2004 Yukon Quest
2001 Iditarod 2002 Yukon Quest 2004 Yukon Quest
action filter_type
action find
entity Thomas Tetz
relation participant of
type recurring sporting event
['Thomas Tetz', 'participant of', {'concept': 'recurring sporting event'}]
SELECT DISTINCT ?h WHERE { resource:Thomas_Tetz property:participant_of ?h . ?h rdf:type ontology:recurring_sporting_event }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q18577462 Q18579425 Q18579429
P1346
Q502895
USER
Which people were won by 2001 Iditarod, 2002 Yukon Quest and 2004 Yukon Quest ?
(c(Q502895),P1346,Q18577462) (c(Q502895),P1346,Q18579425) (c(Q502895),P1346,Q18579429)
action union
action filter_type
action find
entity Q18577462
relation P1346
type Q502895
action filter_type
action find
entity Q18579425
relation P1346
type Q502895
action filter_type
action find
entity Q18579429
relation P1346
type Q502895
[{'concept': 'Q502895'}, 'P1346', 'Q18577462'] [{'concept': 'Q502895'}, 'P1346', 'Q18579425'] [{'concept': 'Q502895'}, 'P1346', 'Q18579429']
SELECT DISTINCT ?g WHERE { { resource:Q18577462 property:P1346 ?g . ?g rdf:type ontology:Q502895 } UNION { resource:Q18579425 property:P1346 ?g . ?g rdf:type ontology:Q502895 } }
2001 Iditarod 2002 Yukon Quest 2004 Yukon Quest
action union
action filter_type
action find
entity 2001 Iditarod
relation winner
type common name
action filter_type
action find
entity 2002 Yukon Quest
relation winner
type common name
action filter_type
action find
entity 2004 Yukon Quest
relation winner
type common name
[{'concept': 'common name'}, 'winner', '2001 Iditarod'] [{'concept': 'common name'}, 'winner', '2002 Yukon Quest'] [{'concept': 'common name'}, 'winner', '2004 Yukon Quest']
SELECT DISTINCT ?g WHERE { { resource:2001_Iditarod property:winner ?g . ?g rdf:type ontology:common_name } UNION { resource:2002_Yukon_Quest property:winner ?g . ?g rdf:type ontology:common_name } }
[]
common name
Q5300949 Q1409516 Q1409516
SYSTEM
Hans Gatt for 2nd, 3rd, Doug Swingley for 1st
Q5300949 Q1409516 Q1409516
(c(Q502895),P1346,Q18577462) (c(Q502895),P1346,Q18579425) (c(Q502895),P1346,Q18579429)
action union
action filter_type
action find
entity Q18577462
relation P1346
type Q502895
action filter_type
action find
entity Q18579425
relation P1346
type Q502895
action filter_type
action find
entity Q18579429
relation P1346
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P1346', 'Q18577462'] [{'concept': 'Q502895'}, 'P1346', 'Q18579425'] [{'concept': 'Q502895'}, 'P1346', 'Q18579429']
SELECT DISTINCT ?g WHERE { { resource:Q18577462 property:P1346 ?g . ?g rdf:type ontology:Q502895 } UNION { resource:Q18579425 property:P1346 ?g . ?g rdf:type ontology:Q502895 } }
Doug Swingley Hans Gatt Hans Gatt
Doug Swingley, Hans Gatt and Hans Gatt were won by 2001 Iditarod, 2002 Yukon Quest and 2004 Yukon Quest
Doug Swingley Hans Gatt Hans Gatt
action union
action filter_type
action find
entity 2001 Iditarod
relation winner
type common name
action filter_type
action find
entity 2002 Yukon Quest
relation winner
type common name
action filter_type
action find
entity 2004 Yukon Quest
relation winner
type common name
[{'concept': 'common name'}, 'winner', '2001 Iditarod'] [{'concept': 'common name'}, 'winner', '2002 Yukon Quest'] [{'concept': 'common name'}, 'winner', '2004 Yukon Quest']
SELECT DISTINCT ?g WHERE { { resource:2001_Iditarod property:winner ?g . ?g rdf:type ontology:common_name } UNION { resource:2002_Yukon_Quest property:winner ?g . ?g rdf:type ontology:common_name } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5300949
P1066
Q502895
USER
Which person was advised by that one ?
(c(Q502895),P1066,Q5300949)
action filter_type
action find_reverse
entity Q5300949
relation P1066
type Q502895
[{'concept': 'Q502895'}, 'P1066', 'Q5300949']
SELECT DISTINCT ?c WHERE { ?c property:P1066 resource:Q5300949 . ?c rdf:type ontology:Q502895 }
Doug Swingley
action filter_type
action find_reverse
entity Doug Swingley
relation student of
type common name
[{'concept': 'common name'}, 'student of', 'Doug Swingley']
SELECT DISTINCT ?c WHERE { ?c property:student_of resource:Doug_Swingley . ?c rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1409516
SYSTEM
Did you mean Hans Gatt ?
Q5300949 Q1409516 Q1409516
(c(Q502895),P1066,Q5300949) (c(Q502895),P1066,Q1409516) (c(Q502895),P1066,Q1409516)
[ANSWER]
[{'concept': 'Q502895'}, 'P1066', 'Q5300949'] [{'concept': 'Q502895'}, 'P1066', 'Q1409516'] [{'concept': 'Q502895'}, 'P1066', 'Q1409516']
SELECT DISTINCT ?c WHERE { ?c property:P1066 resource:Q5300949 . ?c rdf:type ontology:Q502895 }
Doug Swingley Hans Gatt Hans Gatt
Did you mean Hans Gatt ?
Hans Gatt
[{'concept': 'common name'}, 'student of', 'Doug Swingley'] [{'concept': 'common name'}, 'student of', 'Hans Gatt'] [{'concept': 'common name'}, 'student of', 'Hans Gatt']
SELECT DISTINCT ?c WHERE { ?c property:student_of resource:Doug_Swingley . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Doug Swingley. Could you tell me the answer for that?
(c(Q502895),P1066,Q5300949)
Q5300949
[{'concept': 'Q502895'}, 'P1066', 'Q5300949']
[{'concept': 'common name'}, 'student of', 'Doug Swingley']
[]
Q18638257
SYSTEM
Jessie Royer
Q18638257
(c(Q502895),P1066,Q5300949)
action filter_type
action find_reverse
entity Q5300949
relation P1066
type Q502895
O [ANSWER] was advised by that one
[{'concept': 'Q502895'}, 'P1066', 'Q5300949']
SELECT DISTINCT ?c WHERE { ?c property:P1066 resource:Q5300949 . ?c rdf:type ontology:Q502895 }
Jessie Royer
O Jessie Royer was advised by that one
Jessie Royer
action filter_type
action find_reverse
entity Doug Swingley
relation student of
type common name
[{'concept': 'common name'}, 'student of', 'Doug Swingley']
SELECT DISTINCT ?c WHERE { ?c property:student_of resource:Doug_Swingley . ?c rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q18638257 Q18577469
P710
Q18608583
USER
Did that person particiate in 2013 Iditarod ?
(Q18577469,P710,Q18638257)
action is_in
entity Q18638257
action find
entity Q18577469
relation P710
['Q18577469', 'P710', 'Q18638257']
ASK WHERE { resource:Q18577469 property:P710 resource:Q18638257 }
Jessie Royer 2013 Iditarod
action is_in
entity Jessie Royer
action find
entity 2013 Iditarod
relation participant
['2013 Iditarod', 'participant', 'Jessie Royer']
ASK WHERE { resource:2013_Iditarod property:participant resource:Jessie_Royer }
[]
recurring sporting event
SYSTEM
YES
(Q18577469,P710,Q18638257)
action is_in
entity Q18638257
action find
entity Q18577469
relation P710
[ANSWER]
['Q18577469', 'P710', 'Q18638257']
ASK WHERE { resource:Q18577469 property:P710 resource:Q18638257 }
Yes
action is_in
entity Jessie Royer
action find
entity 2013 Iditarod
relation participant
['2013 Iditarod', 'participant', 'Jessie Royer']
ASK WHERE { resource:2013_Iditarod property:participant resource:Jessie_Royer }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q920771 Q1409516
P1346
Q18608583
USER
Which recurring sporting events were Hans Gatt or Wilfried Cretskens decalred as a champion of ?
OR((c(Q18608583),P1346,Q1409516), (c(Q18608583),P1346,Q920771))
action filter_type
action union
action find_reverse
entity Q1409516
relation P1346
action find_reverse
entity Q920771
relation P1346
type Q18608583
{'OR': [[{'concept': 'Q18608583'}, 'P1346', 'Q1409516'], [{'concept': 'Q18608583'}, 'P1346', 'Q920771']]}
SELECT DISTINCT ?j WHERE { { { ?j property:P1346 resource:Q1409516 } UNION { ?j property:P1346 resource:Q920771 } } . ?j rdf:type ontology:Q18608583 }
Wilfried Cretskens Hans Gatt
action filter_type
action union
action find_reverse
entity Hans Gatt
relation winner
action find_reverse
entity Wilfried Cretskens
relation winner
type recurring sporting event
{'OR': [[{'concept': 'recurring sporting event'}, 'winner', 'Hans Gatt'], [{'concept': 'recurring sporting event'}, 'winner', 'Wilfried Cretskens']]}
SELECT DISTINCT ?j WHERE { { { ?j property:winner resource:Hans_Gatt } UNION { ?j property:winner resource:Wilfried_Cretskens } } . ?j rdf:type ontology:recurring_sporting_event }
[]
recurring sporting event
Q18579436 Q18579429 Q936405 Q18579425 Q18579427
SYSTEM
2010 Yukon Quest, 2004 Yukon Quest, 2007 Tour of Qatar, 2002 Yukon Quest, 2003 Yukon Quest
Q18579436 Q18579429 Q936405 Q18579425 Q18579427
OR((c(Q18608583),P1346,Q1409516), (c(Q18608583),P1346,Q920771))
action filter_type
action union
action find_reverse
entity Q1409516
relation P1346
action find_reverse
entity Q920771
relation P1346
type Q18608583
Hans Gatt or Wilfried Cretskens were decalred as a champion of the [ANSWERS]
{'OR': [[{'concept': 'Q18608583'}, 'P1346', 'Q1409516'], [{'concept': 'Q18608583'}, 'P1346', 'Q920771']]}
SELECT DISTINCT ?j WHERE { { { ?j property:P1346 resource:Q1409516 } UNION { ?j property:P1346 resource:Q920771 } } . ?j rdf:type ontology:Q18608583 }
2010 Yukon Quest 2004 Yukon Quest 2007 Tour of Qatar 2002 Yukon Quest 2003 Yukon Quest
Hans Gatt or Wilfried Cretskens were decalred as a champion of the 2010 Yukon Quest, 2004 Yukon Quest, 2007 Tour of Qatar, 2002 Yukon Quest and 2003 Yukon Quest
2010 Yukon Quest 2004 Yukon Quest 2007 Tour of Qatar 2002 Yukon Quest 2003 Yukon Quest
action filter_type
action union
action find_reverse
entity Hans Gatt
relation winner
action find_reverse
entity Wilfried Cretskens
relation winner
type recurring sporting event
{'OR': [[{'concept': 'recurring sporting event'}, 'winner', 'Hans Gatt'], [{'concept': 'recurring sporting event'}, 'winner', 'Wilfried Cretskens']]}
SELECT DISTINCT ?j WHERE { { { ?j property:winner resource:Hans_Gatt } UNION { ?j property:winner resource:Wilfried_Cretskens } } . ?j rdf:type ontology:recurring_sporting_event }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q18588345 Q324516
P710
Q350604
USER
How many armed conflicts were Thomas Tetz or Choctaw a participant of ?
(c(Q350604),P710,Q18588345) (c(Q350604),P710,Q324516)
action count
action union
action filter_type
action find_reverse
entity Q18588345
relation P710
type Q350604
action filter_type
action find_reverse
entity Q324516
relation P710
type Q350604
[{'concept': 'Q350604'}, 'P710', 'Q18588345'] [{'concept': 'Q350604'}, 'P710', 'Q324516']
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { { ?x property:P710 resource:Q18588345 . ?x rdf:type ontology:Q350604 } UNION { ?x rdf:type ontology:Q350604 . ?x property:P710 resource:Q324516 } }
Thomas Tetz Choctaw
action count
action union
action filter_type
action find_reverse
entity Thomas Tetz
relation participant
type armed conflict
action filter_type
action find_reverse
entity Choctaw
relation participant
type armed conflict
[{'concept': 'armed conflict'}, 'participant', 'Thomas Tetz'] [{'concept': 'armed conflict'}, 'participant', 'Choctaw']
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { { ?x property:participant resource:Thomas_Tetz . ?x rdf:type ontology:armed_conflict } UNION { ?x rdf:type ontology:armed_conflict . ?x property:participant resource:Choctaw } }
[]
armed conflict
SYSTEM
2
Q26013 Q1186260
(c(Q350604),P710,Q18588345) (c(Q350604),P710,Q324516)
action count
action union
action filter_type
action find_reverse
entity Q18588345
relation P710
type Q350604
action filter_type
action find_reverse
entity Q324516
relation P710
type Q350604
[ANSWER]
[{'concept': 'Q350604'}, 'P710', 'Q18588345'] [{'concept': 'Q350604'}, 'P710', 'Q324516']
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { { ?x property:P710 resource:Q18588345 . ?x rdf:type ontology:Q350604 } UNION { ?x rdf:type ontology:Q350604 . ?x property:P710 resource:Q324516 } }
War of 1812 Creek War
2
action count
action union
action filter_type
action find_reverse
entity Thomas Tetz
relation participant
type armed conflict
action filter_type
action find_reverse
entity Choctaw
relation participant
type armed conflict
[{'concept': 'armed conflict'}, 'participant', 'Thomas Tetz'] [{'concept': 'armed conflict'}, 'participant', 'Choctaw']
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { { ?x property:participant resource:Thomas_Tetz . ?x rdf:type ontology:armed_conflict } UNION { ?x rdf:type ontology:armed_conflict . ?x property:participant resource:Choctaw } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P361
Q18608583 Q22348500
USER
Which cycling race classes are a component of around 1 recurring sporting event ?
(c(Q22348500),P361,c(Q18608583))
action approx
action find_tuple_counts
relation P361
type Q22348500
type Q18608583
value 1
[{'concept': 'Q22348500'}, 'P361', {'concept': 'Q18608583'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?h ) WHERE { ?n property:P361 ?r . ?n rdf:type ontology:Q22348500 . ?r rdf:type ontology:Q18608583 } GROUP BY ?n } . FILTER ( ?h = 1 ) }
action approx
action find_tuple_counts
relation part of
type cycling race class defined by the International Cycling Union
type recurring sporting event
value 1
[{'concept': 'cycling race class defined by the International Cycling Union'}, 'part of', {'concept': 'recurring sporting event'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?h ) WHERE { ?n property:part_of ?r . ?n rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union . ?r rdf:type ontology:recurring_sporting_event } GROUP BY ?n } . FILTER ( ?h = 1 ) }
[]
recurring sporting event cycling race class defined by the International Cycling Union
Q20872500 Q19842424 Q24841181
SYSTEM
2016 Grand Prix de Fourmies, 2016 Grand Prix de Denain, 2016 Tour du Finistère
Q19842424 Q3114093 Q3114095 Q3114094 Q3114096 Q20748907 Q20978954 Q20872500 Q3114100 Q19249082 Q21884141 Q21866985 Q20651314 Q15999749 Q24841181 Q20872499 Q11080986 Q614218 Q14901154 Q21903450 Q23655565 Q3114085 Q3114089 Q23673809 Q20059842 Q2685979 Q21884122
(c(Q22348500),P361,c(Q18608583))
action approx
action find_tuple_counts
relation P361
type Q22348500
type Q18608583
value 1
[ANSWERS] are a component of around 1 recurring sporting event
[{'concept': 'Q22348500'}, 'P361', {'concept': 'Q18608583'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?h ) WHERE { ?n property:P361 ?r . ?n rdf:type ontology:Q22348500 . ?r rdf:type ontology:Q18608583 } GROUP BY ?n } . FILTER ( ?h = 1 ) }
2016 Grand Prix de Denain 2007 Grand Prix de Fourmies 2009 Grand Prix de Fourmies 2008 Grand Prix de Fourmies 2010 Grand Prix de Fourmies Polynormande 2016 Boucles de l'Aulne 2016 2016 Grand Prix de Fourmies 2012 Grand Prix de Fourmies 2015 Grand Prix de Denain 2016 Cholet-Pays de Loire 2016 Grand Prix d'Ouverture La Marseillaise 2016 Route Adélie 2014 Grand Prix de Denain 2016 Tour du Finistère 2015 Grand Prix de Fourmies 2013 Grand Prix de Denain 2011 Grand Prix de Fourmies 2013 Grand Prix de Fourmies 2016 Paris–Camembert 2016 Three Days of De Panne 2011 Grand Prix de Denain 2006 Grand Prix de Fourmies 2016 Tro-Bro Léon 2016 La Roue Tourangelle 2012 Grand Prix de Denain 2016 Classic Loire Atlantique
2016 Grand Prix de Fourmies, 2016 Grand Prix de Denain and 2016 Tour du Finistère are a component of around 1 recurring sporting event
2016 Grand Prix de Fourmies 2016 Grand Prix de Denain 2016 Tour du Finistère
action approx
action find_tuple_counts
relation part of
type cycling race class defined by the International Cycling Union
type recurring sporting event
value 1
[{'concept': 'cycling race class defined by the International Cycling Union'}, 'part of', {'concept': 'recurring sporting event'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?h ) WHERE { ?n property:part_of ?r . ?n rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union . ?r rdf:type ontology:recurring_sporting_event } GROUP BY ?n } . FILTER ( ?h = 1 ) }
[]