Simple Question (Direct)
Simple Question
Q6787124
P413
Q31629
USER
Which type of sport does Mathias Kanda play at ?
(Q6787124,P413,c(Q31629))
action filter_type
action find
entity Q6787124
relation P413
type Q31629
['Q6787124', 'P413', {'concept': 'Q31629'}]
SELECT DISTINCT ?j WHERE { resource:Q6787124 property:P413 ?j . ?j rdf:type ontology:Q31629 }
Mathias Kanda
action filter_type
action find
entity Mathias Kanda
relation position played on team / speciality
type type of sport
['Mathias Kanda', 'position played on team / speciality', {'concept': 'type of sport'}]
SELECT DISTINCT ?j WHERE { resource:Mathias_Kanda property:position_played_on_team_/_speciality ?j . ?j rdf:type ontology:type_of_sport }
[]
type of sport
Q40244
SYSTEM
marathon
Q40244
(Q6787124,P413,c(Q31629))
action filter_type
action find
entity Q6787124
relation P413
type Q31629
Mathias Kanda plays the [ANSWER]
['Q6787124', 'P413', {'concept': 'Q31629'}]
SELECT DISTINCT ?j WHERE { resource:Q6787124 property:P413 ?j . ?j rdf:type ontology:Q31629 }
marathon
Mathias Kanda plays the marathon
marathon
action filter_type
action find
entity Mathias Kanda
relation position played on team / speciality
type type of sport
['Mathias Kanda', 'position played on team / speciality', {'concept': 'type of sport'}]
SELECT DISTINCT ?j WHERE { resource:Mathias_Kanda property:position_played_on_team_/_speciality ?j . ?j rdf:type ontology:type_of_sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6787124
P2416
Q31629
USER
Which type of sport was that person a contender for ?
(Q40244,P2416,c(Q31629))
action filter_type
action find
entity Q6787124
relation P2416
type Q31629
['Q40244', 'P2416', {'concept': 'Q31629'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q31629 . resource:Q6787124 property:P2416 ?d }
Mathias Kanda
action filter_type
action find
entity Mathias Kanda
relation sports discipline competed in
type type of sport
['marathon', 'sports discipline competed in', {'concept': 'type of sport'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:type_of_sport . resource:Mathias_Kanda property:sports_discipline_competed_in ?d }
[]
type of sport
Q40244
SYSTEM
marathon
Q40244
(Q40244,P2416,c(Q31629))
action filter_type
action find
entity Q6787124
relation P2416
type Q31629
The [ANSWER] was that person a contender for
['Q40244', 'P2416', {'concept': 'Q31629'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q31629 . resource:Q6787124 property:P2416 ?d }
marathon
The marathon was that person a contender for
marathon
action filter_type
action find
entity Mathias Kanda
relation sports discipline competed in
type type of sport
['marathon', 'sports discipline competed in', {'concept': 'type of sport'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:type_of_sport . resource:Mathias_Kanda property:sports_discipline_competed_in ?d }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q40244
P641
Q40244
USER
Which marathons are known to play that type of sport ?
(c(Q40244),P641,Q40244)
action filter_type
action find_reverse
entity Q40244
relation P641
type Q40244
[{'concept': 'Q40244'}, 'P641', 'Q40244']
SELECT DISTINCT ?b WHERE { ?b property:P641 resource:Q40244 . ?b rdf:type ontology:Q40244 }
marathon
action filter_type
action find_reverse
entity marathon
relation sport
type marathon
[{'concept': 'marathon'}, 'sport', 'marathon']
SELECT DISTINCT ?b WHERE { ?b property:sport resource:marathon . ?b rdf:type ontology:marathon }
[]
marathon
Q13813510 Q3477713 Q2704221
SYSTEM
2013 Enschede Marathon, 2009 New York City Marathon, 1992 Chicago Marathon
Q20740818 Q2509715 Q13813510 Q2412276 Q3477713 Q2704221 Q2285752 Q13814045 Q2844220 Q13814041 Q3483043 Q5705418 Q2649535 Q2483137 Q5414275 Q2213599 Q2757723 Q2026961 Q2572839 Q1815206 Q20821385 Q1956719 Q1916635 Q3209488 Q13813352 Q2120627 Q1816812 Q13813359 Q2781980 Q2725274 Q2483649 Q21329138 Q13813466 Q2594381 Q1918370 Q2143736 Q1926065 Q3466927 Q1995608 Q4566093 Q3436539 Q1974533 Q2650316 Q2586244 Q2028057 Q1823593 Q13814111 Q1863683 Q4846988 Q2438917 Q20871344 Q2471649 Q13814123 Q2034497 Q13814193 Q18089027 Q2098319 Q2128470 Q3062361 Q13813459 Q2043592 Q14641000 Q3170993 Q1953453 Q1940679 Q2861636 Q2415438 Q22807468 Q13814104 Q1923865 Q2428377 Q1930908 Q1953298 Q2037081 Q2700241 Q2676150 Q13463033 Q13463031 Q2194532 Q2093097 Q1814000 Q2521400 Q2675244 Q4489903 Q2418780 Q2461126 Q2642241 Q1842673 Q1817967 Q20680130 Q2480440 Q16802238 Q2178669 Q20740833 Q3102559 Q13814095 Q2593586 Q11524412 Q3039843 Q1891075 Q13814089 Q13814076 Q3026524 Q2528972 Q2091546 Q1968290 Q2511639 Q17634739 Q2003049 Q2549771 Q1910596 Q21193860 Q2468744 Q2340187 Q2744819 Q13814131 Q2434475 Q15879074 Q15879073 Q2135429 Q2271449 Q2191278 Q1839519 Q13099589 Q2787253 Q1910602 Q2274796 Q21006553 Q2427350 Q2149655 Q2147483 Q1989379 Q2054199 Q2251521 Q11705676 Q1911441 Q2687029 Q2167016 Q2022603 Q2313411 Q2748030 Q4040944 Q2658328 Q3957950 Q2211183 Q2319993 Q16823515 Q2755087 Q1911222 Q2718693 Q2122616 Q2539544 Q1909613 Q2209812 Q2692965 Q2577443 Q302355 Q2512133 Q13814082 Q3065626 Q1922966 Q2078624 Q13463032 Q2512753 Q2385390 Q19817965 Q1808852 Q21193839 Q13770165 Q2837133 Q13814154 Q13814159 Q1973507 Q2225794 Q2622441 Q2045518 Q3028553 Q19838139 Q20821382 Q2604322 Q2217693 Q19838137 Q20811296 Q2154604 Q13895447 Q2534840 Q19799160 Q1918282 Q13463034 Q16206811 Q1891263 Q15879091 Q15879090 Q2004094 Q19365172 Q1968855 Q22677554 Q19838121 Q2316574 Q1965988 Q27044204 Q2126910 Q18923165 Q13814142 Q2517184 Q2450743 Q2801708 Q20821386 Q13814148 Q20821381 Q2241486 Q20821383 Q3464402 Q2453926 Q2357724 Q3116306 Q19838127 Q2071218 Q2226443 Q15130139 Q19838123 Q20740772 Q2363821 Q1938635 Q2774311 Q2280621 Q3328173 Q2091324 Q3260714 Q2747896 Q5535729 Q2257324 Q2266704 Q1906893 Q20740871 Q2319550 Q2165676 Q2247597 Q1969552 Q2593913 Q2368392 Q2788290 Q20821373 Q2678450 Q15622255 Q20821376 Q20821378 Q22677613 Q2788528 Q1873167 Q2389151 Q2125927 Q20735029 Q20895703 Q2256373 Q13814117 Q2515558 Q20732584 Q2123030 Q13813346 Q3001313 Q2099356 Q21193806 Q4298236 Q2187923 Q4743577 Q1927089 Q2872108 Q20740800 Q1972966 Q13813472
(c(Q40244),P641,Q40244)
action filter_type
action find_reverse
entity Q40244
relation P641
type Q40244
[ANSWERS] are known to play that type of sport
[{'concept': 'Q40244'}, 'P641', 'Q40244']
SELECT DISTINCT ?b WHERE { ?b property:P641 resource:Q40244 . ?b rdf:type ontology:Q40244 }
1987 Rome Marathon 1993 London Marathon 2013 Enschede Marathon 2007 Amsterdam Marathon 2009 New York City Marathon 1992 Chicago Marathon 1989 Amsterdam Marathon 1983 Rome Marathon 2009 Dubai Marathon 2013 Prague Marathon 1981 London Marathon 2006 Turin Marathon 1992 London Marathon 1977 Berlin Marathon Enschede Marathon 2011 1989 London Marathon 1989 Rome Marathon 2003 Berlin Marathon 1999 London Marathon 2001 Dubai Marathon 1996 Westland Marathon 1996 Berlin Marathon 2010 Xiamen International Marathon 2012 Enschede Marathon 2001 Amsterdam Marathon 1995 Amsterdam Marathon 2008 Xiamen International Marathon 2005 Amsterdam Marathon 2008 Dubai Marathon 2007 Xiamen International Marathon 1991 London Marathon 2015 Amsterdam Marathon 2006 Berlin Marathon 2003 Chicago Marathon 2007 New York City Marathon 1995 Berlin Marathon 1979 Berlin Marathon 2002 Berlin Marathon 1980 Chicago Marathon 1995 London Marathon 1973 New York City Marathon 2002 Amsterdam Marathon 2003 Amsterdam Marathon 1993 Chicago Marathon 1974 New York City Marathon 1990 Rome Marathon 1998 Turin Marathon 2012 London Marathon 2010 Dubai Marathon 1994 Amsterdam Marathon 2015 Hamburg Marathon 1978 Berlin Marathon 2000 Turin Marathon 1996 Chicago Marathon 2013 Xiamen International Marathon 2014 Dubai Marathon 1994 London Marathon 2008 Prague Marathon 1984 Amsterdam Marathon 1985 Berlin Marathon 2004 Amsterdam Marathon 2002 Turin Marathon 2008 Turin Marathon 2010 London Marathon 1994 Chicago Marathon 2005 Xiamen International Marathon 1981 Chicago Marathon 2015 Turin Marathon 1997 Turin Marathon 1990 London Marathon 1970 New York City Marathon 2010 Amsterdam Marathon 2006 Chicago Marathon 2006 Amsterdam Marathon 2004 Berlin Marathon 1999 Chicago Marathon 2000 Chicago Marathon 1982 Chicago Marathon 2012 Prague Marathon 2001 London Marathon 1992 Amsterdam Marathon 1998 London Marathon 2011 Amsterdam Marathon 1995 Chicago Marathon 1985 Amsterdam Marathon 2012 Chicago Marathon 2003 Xiamen International Marathon 2009 Amsterdam Marathon 2006 New York City Marathon Frankfurt Marathon 1998 1997 Berlin Marathon 2014 Paris Marathon 1982 Rome Marathon 1988 Rome Marathon 2011 Chicago Marathon 1996 Turin Marathon 1993 Berlin Marathon 2013 Tokyo Marathon Rotterdam Marathon 2011 2009 Prague Marathon 1995 Turin Marathon 1993 Turin Marathon 2010 Berlin Marathon 2000 Amsterdam Marathon 1982 Amsterdam Marathon 1984 Berlin Marathon 1971 New York City Marathon 2014 Chicago Marathon 2007 Turin Marathon 2010 Prague Marathon 1998 Amsterdam Marathon 1990 Turin Marathon 1986 Chicago Marathon 1999 Amsterdam Marathon 1986 Berlin Marathon 2001 Turin Marathon 1999 Berlin Marathon 2013 Berlin Marathon 2013 Amsterdam Marathon 1996 London Marathon 2004 Turin Marathon 1982 New York City Marathon 1976 New York City Marathon 2004 Xiamen International Marathon 1984 London Marathon 1990 Amsterdam Marathon 1977 Amsterdam Marathon 2015 Chicago Marathon 1991 Berlin Marathon 2005 Turin Marathon 1983 Amsterdam Marathon 1987 Berlin Marathon 1990 Berlin Marathon 2005 Dubai Marathon 2013 London Marathon 2000 Berlin Marathon 1977 Chicago Marathon 1987 London Marathon 2002 London Marathon 1987 Amsterdam Marathon 1985 London Marathon 2010 Enschede Marathon 1976 Berlin Marathon 2007 Chicago Marathon 2011 New York City Marathon 2010 New York City Marathon 2014 Berlin Marathon 1979 Chicago Marathon 2008 Berlin Marathon 2009 London Marathon 1983 Chicago Marathon 1997 Amsterdam Marathon 2009 Xiamen International Marathon 2006 London Marathon 1989 Chicago Marathon 2005 London Marathon 2011 Berlin Marathon 1988 Berlin Marathon 1994 Turin Marathon 1983 Berlin Marathon 2007 London Marathon 1982 London Marathon 1991 Chicago Marathon 2005 Berlin Marathon 2009 Berlin Marathon 2014 Prague Marathon 2002 Chicago Marathon 1991 Turin Marathon 1988 London Marathon 1985 Chicago Marathon 2011 Turin Marathon 2012 Turin Marathon 1985 Rome Marathon 194 Berlin Marathon 2011 Dubai Marathon 1975 Berlin Marathon 2008 New York City Marathon 2015 Xiamen International Marathon 1994 Westland Marathon 1996 Amsterdam Marathon 2007 Dubai Marathon 2014 Turin Marathon 2015 Enschede Marathon 2000 London Marathon 2005 New York City Marathon New York City Marathon 2002 2015 Paris Marathon 1986 London Marathon 2001 Chicago Marathon 2014 Tokyo Marathon 2004 Chicago Marathon 2014 Xiamen International Marathon 2013 Turin Marathon 2002 Dubai Marathon 2014 Amsterdam Marathon 1980 Amsterdam Marathon 2016 Dubai Marathon 2015 Dubai Marathon 1990 Chicago Marathon 2012 Amsterdam Marathon 2016 Berlin Marathon 1997 London Marathon 2015 Tokyo Marathon 2009 Turin Marathon 1976 Amsterdam Marathon 1988 Chicago Marathon 2004 New York City Marathon 1997 Westland Marathon 2010 Turin Marathon 1993 Westland Marathon 2006 Dubai Marathon 1995 Westland Marathon 1992 Berlin Marathon 2009 Chicago Marathon 1993 Amsterdam Marathon 2008 Chicago Marathon 2014 Hamburg Marathon 1982 Berlin Marathon 2012 Dubai Marathon 2013 New York City Marathon 2014 Enschede Marathon 1984 Rome Marathon 1977 New York City Marathon 2011 Xiamen International Marathon 1981 Amsterdam Marathon 2006 Xiamen International Marathon 2010 Chicago Marathon 1979 Amsterdam Marathon 2004 Dubai Marathon 2000 Dubai Marathon 1988 Amsterdam Marathon 1981 Berlin Marathon 1998 Berlin Marathon 2008 Amsterdam Marathon 1991 Rome Marathon 2012 Xiamen International Marathon 2005 Chicago Marathon 1998 Chicago Marathon 1986 Amsterdam Marathon 2003 Dubai Marathon 1984 Chicago Marathon 2007 Berlin Marathon 1990 Westland Marathon 1983 London Marathon 2013 Chicago Marathon 1991 Westland Marathon 1992 Westland Marathon 2016 Xiamen International Marathon 1997 Chicago Marathon 1991 Amsterdam Marathon 2003 Turin Marathon 2003 London Marathon 1982 Paris Marathon 2015 Prague Marathon 1980 Berlin Marathon 1999 Turin Marathon 1972 New York City Marathon 1980 Paris Marathon 2008 London Marathon 1975 Amsterdam Marathon 2011 London Marathon 2004 London Marathon 1992 Turin Marathon 1989 Berlin Marathon 1978 Chicago Marathon 2011 Prague Marathon 2012 Berlin Marathon 2001 Berlin Marathon 1986 Rome Marathon 1975 New York City Marathon 2013 Dubai Marathon
2013 Enschede Marathon, 2009 New York City Marathon and 1992 Chicago Marathon are known to play that type of sport
2013 Enschede Marathon 2009 New York City Marathon 1992 Chicago Marathon
action filter_type
action find_reverse
entity marathon
relation sport
type marathon
[{'concept': 'marathon'}, 'sport', 'marathon']
SELECT DISTINCT ?b WHERE { ?b property:sport resource:marathon . ?b rdf:type ontology:marathon }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2704221
P17
Q15617994
USER
Which administrative territory is that marathon located in ?
(Q2704221,P17,c(Q15617994))
action filter_type
action find
entity Q2704221
relation P17
type Q15617994
['Q2704221', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q2704221 property:P17 ?t . ?t rdf:type ontology:Q15617994 }
1992 Chicago Marathon
action filter_type
action find
entity 1992 Chicago Marathon
relation country
type designation for an administrative territorial entity
['1992 Chicago Marathon', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:1992_Chicago_Marathon property:country ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q3477713
SYSTEM
Did you mean 2009 New York City Marathon ?
Q13813510 Q3477713 Q2704221
(Q13813510,P17,c(Q15617994)) (Q3477713,P17,c(Q15617994)) (Q2704221,P17,c(Q15617994))
[ANSWER]
['Q13813510', 'P17', {'concept': 'Q15617994'}] ['Q3477713', 'P17', {'concept': 'Q15617994'}] ['Q2704221', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q2704221 property:P17 ?t . ?t rdf:type ontology:Q15617994 }
2013 Enschede Marathon 2009 New York City Marathon 1992 Chicago Marathon
Did you mean 2009 New York City Marathon ?
2009 New York City Marathon
['2013 Enschede Marathon', 'country', {'concept': 'designation for an administrative territorial entity'}] ['2009 New York City Marathon', 'country', {'concept': 'designation for an administrative territorial entity'}] ['1992 Chicago Marathon', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:1992_Chicago_Marathon property:country ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant 1992 Chicago Marathon. Could you tell me the answer for that?
(Q2704221,P17,c(Q15617994))
Q2704221
['Q2704221', 'P17', {'concept': 'Q15617994'}]
['1992 Chicago Marathon', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q30
SYSTEM
United States of America
Q30
(Q2704221,P17,c(Q15617994))
action filter_type
action find
entity Q2704221
relation P17
type Q15617994
That marathon is located in [ANSWER]
['Q2704221', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q2704221 property:P17 ?t . ?t rdf:type ontology:Q15617994 }
United States of America
That marathon is located in United States of America
United States of America
action filter_type
action find
entity 1992 Chicago Marathon
relation country
type designation for an administrative territorial entity
['1992 Chicago Marathon', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:1992_Chicago_Marathon property:country ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q15617994 Q1048835 Q15617994
USER
How many administrative territories have diplomatic relations with exactly 2 political territories or administrative territories ?
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 2
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) ?u WHERE { { ?i property:P530 ?u . ?u rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } UNION { ?i property:P530 ?u . ?u rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q1048835 } } GROUP BY ?u } . FILTER ( ?d = 2 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 2
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) ?u WHERE { { ?i property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?i property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:political_territorial_entity } } GROUP BY ?u } . FILTER ( ?d = 2 ) }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
SYSTEM
29
Q804 Q398 Q657 Q792 Q986 Q244 Q811 Q819 Q424 Q236 Q238 Q1045 Q921 Q1020 Q1037 Q965 Q967 Q962 Q917 Q1007 Q1006 Q1005 Q977 Q34020 Q686 Q574 Q874 Q858 Q948
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 2
[ANSWER]
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) ?u WHERE { { ?i property:P530 ?u . ?u rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } UNION { ?i property:P530 ?u . ?u rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q1048835 } } GROUP BY ?u } . FILTER ( ?d = 2 ) }
Panama Bahrain Chad El Salvador Eritrea Barbados Nicaragua Laos Cambodia Montenegro San Marino Somalia Brunei Malawi Rwanda Burkina Faso Burundi Benin Bhutan Guinea-Bissau Guinea Gambia Djibouti Niue Vanuatu East Timor Turkmenistan Syria Tunisia
29
action count
action equal
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 2
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) ?u WHERE { { ?i property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?i property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:political_territorial_entity } } GROUP BY ?u } . FILTER ( ?d = 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19956098 Q2704221
P641
Q31629
USER
Which types of sport did 1992 Chicago Marathon or Olivier Gui participate in ?
OR((Q2704221,P641,c(Q31629)), (Q19956098,P641,c(Q31629)))
action filter_type
action union
action find
entity Q2704221
relation P641
action find
entity Q19956098
relation P641
type Q31629
{'OR': [['Q2704221', 'P641', {'concept': 'Q31629'}], ['Q19956098', 'P641', {'concept': 'Q31629'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?u ) { ( resource:Q2704221 ) ( resource:Q19956098 ) } . ?u property:P641 ?w } . ?w rdf:type ontology:Q31629 }
Olivier Gui 1992 Chicago Marathon
action filter_type
action union
action find
entity 1992 Chicago Marathon
relation sport
action find
entity Olivier Gui
relation sport
type type of sport
{'OR': [['1992 Chicago Marathon', 'sport', {'concept': 'type of sport'}], ['Olivier Gui', 'sport', {'concept': 'type of sport'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?u ) { ( resource:1992_Chicago_Marathon ) ( resource:Olivier_Gui ) } . ?u property:sport ?w } . ?w rdf:type ontology:type_of_sport }
[]
type of sport
Q40244 Q542
SYSTEM
marathon, athletics
Q40244 Q542
OR((Q2704221,P641,c(Q31629)), (Q19956098,P641,c(Q31629)))
action filter_type
action union
action find
entity Q2704221
relation P641
action find
entity Q19956098
relation P641
type Q31629
1992 Chicago Marathon or Olivier Gui participated in [ANSWERS]
{'OR': [['Q2704221', 'P641', {'concept': 'Q31629'}], ['Q19956098', 'P641', {'concept': 'Q31629'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?u ) { ( resource:Q2704221 ) ( resource:Q19956098 ) } . ?u property:P641 ?w } . ?w rdf:type ontology:Q31629 }
marathon athletics
1992 Chicago Marathon or Olivier Gui participated in marathon and athletics
marathon athletics
action filter_type
action union
action find
entity 1992 Chicago Marathon
relation sport
action find
entity Olivier Gui
relation sport
type type of sport
{'OR': [['1992 Chicago Marathon', 'sport', {'concept': 'type of sport'}], ['Olivier Gui', 'sport', {'concept': 'type of sport'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?u ) { ( resource:1992_Chicago_Marathon ) ( resource:Olivier_Gui ) } . ?u property:sport ?w } . ?w rdf:type ontology:type_of_sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19956098
P27
Q15617994
USER
Which administrative territory does that person belong to ?
(Q40244,P27,c(Q15617994)) (Q542,P27,c(Q15617994))
action filter_type
action find
entity Q19956098
relation P27
type Q15617994
['Q40244', 'P27', {'concept': 'Q15617994'}] ['Q542', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q19956098 property:P27 ?q }
Olivier Gui
action filter_type
action find
entity Olivier Gui
relation country of citizenship
type designation for an administrative territorial entity
['marathon', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['athletics', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Olivier_Gui property:country_of_citizenship ?q }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q40244,P27,c(Q15617994)) (Q542,P27,c(Q15617994))
action filter_type
action find
entity Q19956098
relation P27
type Q15617994
That person belongs to the [ANSWER]
['Q40244', 'P27', {'concept': 'Q15617994'}] ['Q542', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q19956098 property:P27 ?q }
France
That person belongs to the France
France
action filter_type
action find
entity Olivier Gui
relation country of citizenship
type designation for an administrative territorial entity
['marathon', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['athletics', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Olivier_Gui property:country_of_citizenship ?q }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q142 Q6710360 Q159
P530
Q15617994
USER
Does that administrative territory have diplomatic associations with Lytle Independent School District and Russia ?
(Q142,P530,Q6710360) (Q142,P530,Q159)
action is_in
entity Q142
action intersection
action find_reverse
entity Q6710360
relation P530
action find_reverse
entity Q159
relation P530
['Q142', 'P530', 'Q6710360'] ['Q142', 'P530', 'Q159']
ASK WHERE { resource:Q142 property:P530 resource:Q159 . resource:Q142 property:P530 resource:Q6710360 }
France Lytle Independent School District Russia
action is_in
entity France
action intersection
action find_reverse
entity Lytle Independent School District
relation diplomatic relation
action find_reverse
entity Russia
relation diplomatic relation
['France', 'diplomatic relation', 'Lytle Independent School District'] ['France', 'diplomatic relation', 'Russia']
ASK WHERE { resource:France property:diplomatic_relation resource:Russia . resource:France property:diplomatic_relation resource:Lytle_Independent_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q142,P530,Q6710360) (Q142,P530,Q159)
action is_in
entity Q142
action intersection
action find_reverse
entity Q6710360
relation P530
action find_reverse
entity Q159
relation P530
[ANSWER]
['Q142', 'P530', 'Q6710360'] ['Q142', 'P530', 'Q159']
ASK WHERE { resource:Q142 property:P530 resource:Q159 . resource:Q142 property:P530 resource:Q6710360 }
NO and YES respectively
action is_in
entity France
action intersection
action find_reverse
entity Lytle Independent School District
relation diplomatic relation
action find_reverse
entity Russia
relation diplomatic relation
['France', 'diplomatic relation', 'Lytle Independent School District'] ['France', 'diplomatic relation', 'Russia']
ASK WHERE { resource:France property:diplomatic_relation resource:Russia . resource:France property:diplomatic_relation resource:Lytle_Independent_School_District }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q511002 Q19956098
P47 P19
Q20667921
USER
Which french administrative divisions were Olivier Gui born in or share border with Compains ?
OR((Q19956098,P19,c(Q20667921)), (Q511002,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q19956098
relation P19
action find
entity Q511002
relation P47
type Q20667921
{'OR': [['Q19956098', 'P19', {'concept': 'Q20667921'}], ['Q511002', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q20667921 . { { resource:Q511002 property:P47 ?j } UNION { resource:Q19956098 property:P19 ?j } } }
Compains Olivier Gui
action filter_type
action union
action find
entity Olivier Gui
relation place of birth
action find
entity Compains
relation shares border with
type type of french administrative division
{'OR': [['Olivier Gui', 'place of birth', {'concept': 'type of french administrative division'}], ['Compains', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:type_of_french_administrative_division . { { resource:Compains property:shares_border_with ?j } UNION { resource:Olivier_Gui property:place_of_birth ?j } } }
[]
type of french administrative division
Q270198 Q269084 Q1046874 Q288 Q1047929 Q326043 Q1000350 Q245096
SYSTEM
Saint-Alyre-ès-Montagne, Roche-Charles-la-Mayrand, Valbeleix, Tours, La Godivelle, Besse-et-Saint-Anastaise, Espinchal, Égliseneuve-d'Entraigues
Q270198 Q269084 Q1046874 Q288 Q1047929 Q326043 Q1000350 Q245096
OR((Q19956098,P19,c(Q20667921)), (Q511002,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q19956098
relation P19
action find
entity Q511002
relation P47
type Q20667921
[ANSWERS] were Olivier Gui born in or share border with Compains
{'OR': [['Q19956098', 'P19', {'concept': 'Q20667921'}], ['Q511002', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q20667921 . { { resource:Q511002 property:P47 ?j } UNION { resource:Q19956098 property:P19 ?j } } }
Saint-Alyre-ès-Montagne Roche-Charles-la-Mayrand Valbeleix Tours La Godivelle Besse-et-Saint-Anastaise Espinchal Égliseneuve-d'Entraigues
Saint-Alyre-ès-Montagne, Roche-Charles-la-Mayrand, Valbeleix, Tours, La Godivelle, Besse-et-Saint-Anastaise, Espinchal and Égliseneuve-d'Entraigues were Olivier Gui born in or share border with Compains
Saint-Alyre-ès-Montagne Roche-Charles-la-Mayrand Valbeleix Tours La Godivelle Besse-et-Saint-Anastaise Espinchal Égliseneuve-d'Entraigues
action filter_type
action union
action find
entity Olivier Gui
relation place of birth
action find
entity Compains
relation shares border with
type type of french administrative division
{'OR': [['Olivier Gui', 'place of birth', {'concept': 'type of french administrative division'}], ['Compains', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:type_of_french_administrative_division . { { resource:Compains property:shares_border_with ?j } UNION { resource:Olivier_Gui property:place_of_birth ?j } } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q270198 Q269084 Q1046874 Q288 Q1047929 Q326043 Q1000350 Q245096
P47
Q20667921
USER
Which french administrative divisions are bordered by those ones ?
(c(Q20667921),P47,Q270198) (c(Q20667921),P47,Q269084) (c(Q20667921),P47,Q1046874) (c(Q20667921),P47,Q288) (c(Q20667921),P47,Q1047929) (c(Q20667921),P47,Q326043) (c(Q20667921),P47,Q1000350) (c(Q20667921),P47,Q245096)
action filter_type
action find
entity prev_answer
relation P47
type Q20667921
[{'concept': 'Q20667921'}, 'P47', 'Q270198'] [{'concept': 'Q20667921'}, 'P47', 'Q269084'] [{'concept': 'Q20667921'}, 'P47', 'Q1046874'] [{'concept': 'Q20667921'}, 'P47', 'Q288'] [{'concept': 'Q20667921'}, 'P47', 'Q1047929'] [{'concept': 'Q20667921'}, 'P47', 'Q326043'] [{'concept': 'Q20667921'}, 'P47', 'Q1000350'] [{'concept': 'Q20667921'}, 'P47', 'Q245096']
SELECT DISTINCT ?r WHERE { ?s property:P47 ?r . ?r rdf:type ontology:Q20667921 . VALUES ( ?s ) { ( resource:Q270198 ) ( resource:Q269084 ) ( resource:Q1046874 ) } }
Saint-Alyre-ès-Montagne Roche-Charles-la-Mayrand Valbeleix Tours La Godivelle Besse-et-Saint-Anastaise Espinchal Égliseneuve-d'Entraigues
action filter_type
action find
entity prev_answer
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Alyre-ès-Montagne'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Roche-Charles-la-Mayrand'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Valbeleix'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Tours'] [{'concept': 'type of french administrative division'}, 'shares border with', 'La Godivelle'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Besse-et-Saint-Anastaise'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Espinchal'] [{'concept': 'type of french administrative division'}, 'shares border with', "Égliseneuve-d'Entraigues"]
SELECT DISTINCT ?r WHERE { ?s property:shares_border_with ?r . ?r rdf:type ontology:type_of_french_administrative_division . VALUES ( ?s ) { ( resource:Saint-Alyre-ès-Montagne ) ( resource:Roche-Charles-la-Mayrand ) ( resource:Valbeleix ) } }
[]
type of french administrative division
Q269364 Q656494 Q1047775
SYSTEM
Joué-lès-Tours, Saint-Cyr-sur-Loire, Anzat-le-Luguet
Q511002 Q1047929 Q269084 Q806230 Q1047775 Q273265 Q511002 Q245567 Q1046874 Q270198 Q536706 Q273265 Q245409 Q511002 Q672577 Q269084 Q326043 Q1095189 Q267286 Q245409 Q1172052 Q737461 Q1170859 Q1141332 Q656494 Q641181 Q932130 Q693028 Q269364 Q661814 Q511002 Q270198 Q806230 Q1000350 Q245096 Q511002 Q672577 Q748188 Q1046874 Q1095189 Q670884 Q269740 Q245096 Q511002 Q1047929 Q806230 Q781232 Q511002 Q326043 Q670884 Q270347 Q1000350 Q781232 Q275168 Q541580
(c(Q20667921),P47,Q270198) (c(Q20667921),P47,Q269084) (c(Q20667921),P47,Q1046874) (c(Q20667921),P47,Q288) (c(Q20667921),P47,Q1047929) (c(Q20667921),P47,Q326043) (c(Q20667921),P47,Q1000350) (c(Q20667921),P47,Q245096)
action filter_type
action find
entity prev_answer
relation P47
type Q20667921
[ANSWERS] are bordered by those ones
[{'concept': 'Q20667921'}, 'P47', 'Q270198'] [{'concept': 'Q20667921'}, 'P47', 'Q269084'] [{'concept': 'Q20667921'}, 'P47', 'Q1046874'] [{'concept': 'Q20667921'}, 'P47', 'Q288'] [{'concept': 'Q20667921'}, 'P47', 'Q1047929'] [{'concept': 'Q20667921'}, 'P47', 'Q326043'] [{'concept': 'Q20667921'}, 'P47', 'Q1000350'] [{'concept': 'Q20667921'}, 'P47', 'Q245096']
SELECT DISTINCT ?r WHERE { ?s property:P47 ?r . ?r rdf:type ontology:Q20667921 . VALUES ( ?s ) { ( resource:Q270198 ) ( resource:Q269084 ) ( resource:Q1046874 ) } }
Compains La Godivelle Roche-Charles-la-Mayrand Montgreleix Anzat-le-Luguet Mazoires Compains La Chapelle-Marcousse Valbeleix Saint-Alyre-ès-Montagne Dauzat-sur-Vodable Mazoires Chassagne Compains Saint-Pierre-Colamine Roche-Charles-la-Mayrand Besse-et-Saint-Anastaise Saint-Diéry Courgoul Chassagne Mettray Notre-Dame-d'Oé Parçay-Meslay Saint-Pierre-des-Corps Saint-Cyr-sur-Loire Chambray-lès-Tours Saint-Avertin Rochecorbon Joué-lès-Tours La Riche Compains Saint-Alyre-ès-Montagne Montgreleix Espinchal Égliseneuve-d'Entraigues Compains Saint-Pierre-Colamine Saint-Victor-la-Rivière Valbeleix Saint-Diéry Picherande Chambon-sur-Lac Égliseneuve-d'Entraigues Compains La Godivelle Montgreleix Chanterelle Compains Besse-et-Saint-Anastaise Picherande Montboudif Espinchal Chanterelle Condat Saint-Genès-Champespe
Joué-lès-Tours, Saint-Cyr-sur-Loire and Anzat-le-Luguet are bordered by those ones
Joué-lès-Tours Saint-Cyr-sur-Loire Anzat-le-Luguet
action filter_type
action find
entity prev_answer
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Alyre-ès-Montagne'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Roche-Charles-la-Mayrand'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Valbeleix'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Tours'] [{'concept': 'type of french administrative division'}, 'shares border with', 'La Godivelle'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Besse-et-Saint-Anastaise'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Espinchal'] [{'concept': 'type of french administrative division'}, 'shares border with', "Égliseneuve-d'Entraigues"]
SELECT DISTINCT ?r WHERE { ?s property:shares_border_with ?r . ?r rdf:type ontology:type_of_french_administrative_division . VALUES ( ?s ) { ( resource:Saint-Alyre-ès-Montagne ) ( resource:Roche-Charles-la-Mayrand ) ( resource:Valbeleix ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q269364
P190
Q13220204
USER
Which administrative country subdivisions are twin towns of that french administrative division ?
(Q269364,P190,c(Q13220204))
action filter_type
action find
entity Q269364
relation P190
type Q13220204
['Q269364', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?j WHERE { resource:Q269364 property:P190 ?j . ?j rdf:type ontology:Q13220204 }
Joué-lès-Tours
action filter_type
action find
entity Joué-lès-Tours
relation sister city
type second-level administrative country subdivision
['Joué-lès-Tours', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?j WHERE { resource:Joué-lès-Tours property:sister_city ?j . ?j rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Clarification for simple ques.
Q269364
SYSTEM
Did you mean Joué-lès-Tours ?
Q269364 Q656494 Q1047775
(Q269364,P190,c(Q13220204)) (Q656494,P190,c(Q13220204)) (Q1047775,P190,c(Q13220204))
[ANSWER]
['Q269364', 'P190', {'concept': 'Q13220204'}] ['Q656494', 'P190', {'concept': 'Q13220204'}] ['Q1047775', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?j WHERE { resource:Q269364 property:P190 ?j . ?j rdf:type ontology:Q13220204 }
Joué-lès-Tours Saint-Cyr-sur-Loire Anzat-le-Luguet
Did you mean Joué-lès-Tours ?
Joué-lès-Tours
['Joué-lès-Tours', 'sister city', {'concept': 'second-level administrative country subdivision'}] ['Saint-Cyr-sur-Loire', 'sister city', {'concept': 'second-level administrative country subdivision'}] ['Anzat-le-Luguet', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?j WHERE { resource:Joué-lès-Tours property:sister_city ?j . ?j rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Coreferenced)
USER
Yes
(Q269364,P190,c(Q13220204))
['Q269364', 'P190', {'concept': 'Q13220204'}]
['Joué-lès-Tours', 'sister city', {'concept': 'second-level administrative country subdivision'}]
[]
Q731915 Q564813
SYSTEM
Ogre, Santa Maria da Feira Municipality
Q731915 Q564813
(Q269364,P190,c(Q13220204))
action filter_type
action find
entity Q269364
relation P190
type Q13220204
[ANSWERS] are twin towns of that french administrative division
['Q269364', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?j WHERE { resource:Q269364 property:P190 ?j . ?j rdf:type ontology:Q13220204 }
Ogre Santa Maria da Feira Municipality
Ogre and Santa Maria da Feira Municipality are twin towns of that french administrative division
Ogre Santa Maria da Feira Municipality
action filter_type
action find
entity Joué-lès-Tours
relation sister city
type second-level administrative country subdivision
['Joué-lès-Tours', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?j WHERE { resource:Joué-lès-Tours property:sister_city ?j . ?j rdf:type ontology:second-level_administrative_country_subdivision }
[]