Simple Question (Direct)
Simple Question
Q1354307
P21
Q290
USER
Which sex does Erika Berger possess ?
(Q1354307,P21,c(Q290))
action filter_type
action find
entity Q1354307
relation P21
type Q290
['Q1354307', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q290 . resource:Q1354307 property:P21 ?p }
Erika Berger
action filter_type
action find
entity Erika Berger
relation gender
type sex
['Erika Berger', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:sex . resource:Erika_Berger property:gender ?p }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q1354307,P21,c(Q290))
action filter_type
action find
entity Q1354307
relation P21
type Q290
Erika Berger possesses the [ANSWER]
['Q1354307', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q290 . resource:Q1354307 property:P21 ?p }
female
Erika Berger possesses the female
female
action filter_type
action find
entity Erika Berger
relation gender
type sex
['Erika Berger', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:sex . resource:Erika_Berger property:gender ?p }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1354307
P27
Q1048835
USER
Which political territory is Erika Berger an inhabitant of ?
(Q1354307,P27,c(Q1048835))
action filter_type
action find
entity Q1354307
relation P27
type Q1048835
['Q1354307', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { resource:Q1354307 property:P27 ?p . ?p rdf:type ontology:Q1048835 }
Erika Berger
action filter_type
action find
entity Erika Berger
relation country of citizenship
type political territorial entity
['Erika Berger', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Erika_Berger property:country_of_citizenship ?p . ?p rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1354307,P27,c(Q1048835))
action filter_type
action find
entity Q1354307
relation P27
type Q1048835
[ANSWER] is Erika Berger an inhabitant of
['Q1354307', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { resource:Q1354307 property:P27 ?p . ?p rdf:type ontology:Q1048835 }
Germany
Germany is Erika Berger an inhabitant of
Germany
action filter_type
action find
entity Erika Berger
relation country of citizenship
type political territorial entity
['Erika Berger', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Erika_Berger property:country_of_citizenship ?p . ?p rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4712275 Q1354307
P19
Q56061
USER
Which administrative territories were Erika Berger or Albertoyos born at ?
OR((Q1354307,P19,c(Q56061)), (Q4712275,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1354307
relation P19
action find
entity Q4712275
relation P19
type Q56061
{'OR': [['Q1354307', 'P19', {'concept': 'Q56061'}], ['Q4712275', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?e WHERE { { ?h property:P19 ?e . VALUES ( ?h ) { ( resource:Q1354307 ) ( resource:Q4712275 ) } } . ?e rdf:type ontology:Q56061 }
Albertoyos Erika Berger
action filter_type
action union
action find
entity Erika Berger
relation place of birth
action find
entity Albertoyos
relation place of birth
type administrative territorial entity
{'OR': [['Erika Berger', 'place of birth', {'concept': 'administrative territorial entity'}], ['Albertoyos', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { ?h property:place_of_birth ?e . VALUES ( ?h ) { ( resource:Erika_Berger ) ( resource:Albertoyos ) } } . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1726 Q2807
SYSTEM
Munich, Madrid
Q1726 Q2807
OR((Q1354307,P19,c(Q56061)), (Q4712275,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1354307
relation P19
action find
entity Q4712275
relation P19
type Q56061
Erika Berger or Albertoyos were born in [ANSWERS]
{'OR': [['Q1354307', 'P19', {'concept': 'Q56061'}], ['Q4712275', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?e WHERE { { ?h property:P19 ?e . VALUES ( ?h ) { ( resource:Q1354307 ) ( resource:Q4712275 ) } } . ?e rdf:type ontology:Q56061 }
Munich Madrid
Erika Berger or Albertoyos were born in Munich and Madrid
Munich Madrid
action filter_type
action union
action find
entity Erika Berger
relation place of birth
action find
entity Albertoyos
relation place of birth
type administrative territorial entity
{'OR': [['Erika Berger', 'place of birth', {'concept': 'administrative territorial entity'}], ['Albertoyos', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { ?h property:place_of_birth ?e . VALUES ( ?h ) { ( resource:Erika_Berger ) ( resource:Albertoyos ) } } . ?e rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q17086156
P190
Q56061
USER
Are Tolombeh-ye Samareh-ye Do twin town of those ones ?
(Q17086156,P190,Q1726) (Q17086156,P190,Q2807)
action is_in
entity prev_answer
action find
entity Q17086156
relation P190
['Q17086156', 'P190', 'Q1726'] ['Q17086156', 'P190', 'Q2807']
ASK WHERE { VALUES ( ?u ) { ( resource:Q1726 ) ( resource:Q2807 ) } . resource:Q17086156 property:P190 ?u }
Tolombeh-ye Samareh-ye Do
action is_in
entity prev_answer
action find
entity Tolombeh-ye Samareh-ye Do
relation sister city
['Tolombeh-ye Samareh-ye Do', 'sister city', 'Munich'] ['Tolombeh-ye Samareh-ye Do', 'sister city', 'Madrid']
ASK WHERE { VALUES ( ?u ) { ( resource:Munich ) ( resource:Madrid ) } . resource:Tolombeh-ye_Samareh-ye_Do property:sister_city ?u }
[]
administrative territorial entity
SYSTEM
NO
(Q17086156,P190,Q1726) (Q17086156,P190,Q2807)
action is_in
entity prev_answer
action find
entity Q17086156
relation P190
[ANSWER]
['Q17086156', 'P190', 'Q1726'] ['Q17086156', 'P190', 'Q2807']
ASK WHERE { VALUES ( ?u ) { ( resource:Q1726 ) ( resource:Q2807 ) } . resource:Q17086156 property:P190 ?u }
No
action is_in
entity prev_answer
action find
entity Tolombeh-ye Samareh-ye Do
relation sister city
['Tolombeh-ye Samareh-ye Do', 'sister city', 'Munich'] ['Tolombeh-ye Samareh-ye Do', 'sister city', 'Madrid']
ASK WHERE { VALUES ( ?u ) { ( resource:Munich ) ( resource:Madrid ) } . resource:Tolombeh-ye_Samareh-ye_Do property:sister_city ?u }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q365612 Q1354307
P20
Q56061
USER
Which administrative territories did the expiration of Erika Berger or Adolph von Vagedes occur ?
OR((Q1354307,P20,c(Q56061)), (Q365612,P20,c(Q56061)))
action filter_type
action union
action find
entity Q1354307
relation P20
action find
entity Q365612
relation P20
type Q56061
{'OR': [['Q1354307', 'P20', {'concept': 'Q56061'}], ['Q365612', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . { { resource:Q1354307 property:P20 ?b } UNION { resource:Q365612 property:P20 ?b } } }
Adolph von Vagedes Erika Berger
action filter_type
action union
action find
entity Erika Berger
relation place of death
action find
entity Adolph von Vagedes
relation place of death
type administrative territorial entity
{'OR': [['Erika Berger', 'place of death', {'concept': 'administrative territorial entity'}], ['Adolph von Vagedes', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . { { resource:Erika_Berger property:place_of_death ?b } UNION { resource:Adolph_von_Vagedes property:place_of_death ?b } } }
[]
administrative territorial entity
Q1718 Q365
SYSTEM
Düsseldorf, Cologne
Q1718 Q365
OR((Q1354307,P20,c(Q56061)), (Q365612,P20,c(Q56061)))
action filter_type
action union
action find
entity Q1354307
relation P20
action find
entity Q365612
relation P20
type Q56061
The expiration of Erika Berger or Adolph von Vagedes occurred in [ANSWERS]
{'OR': [['Q1354307', 'P20', {'concept': 'Q56061'}], ['Q365612', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . { { resource:Q1354307 property:P20 ?b } UNION { resource:Q365612 property:P20 ?b } } }
Düsseldorf Cologne
The expiration of Erika Berger or Adolph von Vagedes occurred in Düsseldorf and Cologne
Düsseldorf Cologne
action filter_type
action union
action find
entity Erika Berger
relation place of death
action find
entity Adolph von Vagedes
relation place of death
type administrative territorial entity
{'OR': [['Erika Berger', 'place of death', {'concept': 'administrative territorial entity'}], ['Adolph von Vagedes', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . { { resource:Erika_Berger property:place_of_death ?b } UNION { resource:Adolph_von_Vagedes property:place_of_death ?b } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q365
P1427
Q18608583
USER
Which recurring sporting event has start point at that administrative territory ?
(c(Q18608583),P1427,Q365)
action filter_type
action find_reverse
entity Q365
relation P1427
type Q18608583
[{'concept': 'Q18608583'}, 'P1427', 'Q365']
SELECT DISTINCT ?k WHERE { ?k property:P1427 resource:Q365 . ?k rdf:type ontology:Q18608583 }
Cologne
action filter_type
action find_reverse
entity Cologne
relation start point
type recurring sporting event
[{'concept': 'recurring sporting event'}, 'start point', 'Cologne']
SELECT DISTINCT ?k WHERE { ?k property:start_point resource:Cologne . ?k rdf:type ontology:recurring_sporting_event }
[]
recurring sporting event
Clarification for simple ques.
Q365
SYSTEM
Did you mean Cologne ?
Q1718 Q365
(c(Q18608583),P1427,Q1718) (c(Q18608583),P1427,Q365)
[ANSWER]
[{'concept': 'Q18608583'}, 'P1427', 'Q1718'] [{'concept': 'Q18608583'}, 'P1427', 'Q365']
SELECT DISTINCT ?k WHERE { ?k property:P1427 resource:Q365 . ?k rdf:type ontology:Q18608583 }
Düsseldorf Cologne
Did you mean Cologne ?
Cologne
[{'concept': 'recurring sporting event'}, 'start point', 'Düsseldorf'] [{'concept': 'recurring sporting event'}, 'start point', 'Cologne']
SELECT DISTINCT ?k WHERE { ?k property:start_point resource:Cologne . ?k rdf:type ontology:recurring_sporting_event }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q18608583),P1427,Q365)
[{'concept': 'Q18608583'}, 'P1427', 'Q365']
[{'concept': 'recurring sporting event'}, 'start point', 'Cologne']
[]
Q730402
SYSTEM
1965 Tour de France
Q730402
(c(Q18608583),P1427,Q365)
action filter_type
action find_reverse
entity Q365
relation P1427
type Q18608583
[ANSWER] has start point at that administrative territory
[{'concept': 'Q18608583'}, 'P1427', 'Q365']
SELECT DISTINCT ?k WHERE { ?k property:P1427 resource:Q365 . ?k rdf:type ontology:Q18608583 }
1965 Tour de France
1965 Tour de France has start point at that administrative territory
1965 Tour de France
action filter_type
action find_reverse
entity Cologne
relation start point
type recurring sporting event
[{'concept': 'recurring sporting event'}, 'start point', 'Cologne']
SELECT DISTINCT ?k WHERE { ?k property:start_point resource:Cologne . ?k rdf:type ontology:recurring_sporting_event }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P1346
Q502895 Q18608583
USER
Which recurring sporting events were won by more number of people than that recurring sporting event ?
(c(Q18608583),P1346,c(Q502895))
action greater
action find_tuple_counts
relation P1346
type Q18608583
type Q502895
action count
action filter_type
action find
entity Q730402
relation P1346
type Q18608583
[{'concept': 'Q18608583'}, 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?n ) AS ?w ) WHERE { ?v property:P1346 ?n . ?n rdf:type ontology:Q502895 . ?v rdf:type ontology:Q18608583 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { resource:Q730402 property:P1346 ?g . ?g rdf:type ontology:Q18608583 } } . FILTER ( ?w > ?p ) }
action greater
action find_tuple_counts
relation winner
type recurring sporting event
type common name
action count
action filter_type
action find
entity 1965 Tour de France
relation winner
type recurring sporting event
[{'concept': 'recurring sporting event'}, 'winner', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?n ) AS ?w ) WHERE { ?v property:winner ?n . ?n rdf:type ontology:common_name . ?v rdf:type ontology:recurring_sporting_event } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { resource:1965_Tour_de_France property:winner ?g . ?g rdf:type ontology:recurring_sporting_event } } . FILTER ( ?w > ?p ) }
[]
common name recurring sporting event
Q279235 Q19594844 Q20055171
SYSTEM
1980 Tour de France, 2015 Dwars door Drenthe, 2015 Ster ZLM Toer
Q608649 Q754994 Q1672371 Q3768638 Q18914531 Q915918 Q279235 Q19576833 Q2483513 Q19258904 Q907308 Q19594844 Q21093835 Q4451380 Q20199280 Q19818801 Q19588577 Q20055171 Q23662651 Q221428 Q2411800 Q20640108 Q20647589 Q18471444 Q936405 Q907316 Q15731116 Q1633331 Q847630 Q15725895 Q20165905 Q19792656 Q591438 Q22893630 Q907282 Q384895 Q19947163 Q682253 Q580122 Q223420 Q22344347
(c(Q18608583),P1346,c(Q502895))
action greater
action find_tuple_counts
relation P1346
type Q18608583
type Q502895
action count
action filter_type
action find
entity Q730402
relation P1346
type Q18608583
[ANSWERS] were won by more number of people than that recurring sporting event
[{'concept': 'Q18608583'}, 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?n ) AS ?w ) WHERE { ?v property:P1346 ?n . ?n rdf:type ontology:Q502895 . ?v rdf:type ontology:Q18608583 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { resource:Q730402 property:P1346 ?g . ?g rdf:type ontology:Q18608583 } } . FILTER ( ?w > ?p ) }
1983 Tour de France 1989 Tour de France 2008 Iran International Badminton Championships 2003 Giro d'Italia Femminile 2015 Tour of Qatar 1937 Tour de France 1980 Tour de France 2015 Tour de Pologne 2012 Tour of Qatar 2015 Vuelta a Murcia 1953 Tour de France 2015 Dwars door Drenthe 2015 Tour de Filipinas 2013 Tour of Oman 2015 Route du Sud 2015 Paris–Camembert 2015 Ronde van Drenthe 2015 Ster ZLM Toer 2016 Giro d'Italia Femminile 1954 Tour de France 2002 Tour of Qatar 2015 Tour of Austria 2015 Tour of Qinghai Lake 2015 Volta a Portugal 2007 Tour of Qatar 1956 Tour de France 2014 Tour of Oman 2012 Tour of Oman 1957 Tour de France 2014 Tour of Qatar 2015 Tour of Slovenia 2015 Vuelta a La Rioja 1958 Tour de France 2014 Tour de Filipinas 1960 Tour de France 1936 Tour de France 2015 World Ports Classic 1955 Tour de France 1959 Tour de France 2005 Tour of Qatar 2016 Ladies Tour of Qatar
1980 Tour de France, 2015 Dwars door Drenthe and 2015 Ster ZLM Toer were won by more number of people than that recurring sporting event
1980 Tour de France 2015 Dwars door Drenthe 2015 Ster ZLM Toer
action greater
action find_tuple_counts
relation winner
type recurring sporting event
type common name
action count
action filter_type
action find
entity 1965 Tour de France
relation winner
type recurring sporting event
[{'concept': 'recurring sporting event'}, 'winner', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?n ) AS ?w ) WHERE { ?v property:winner ?n . ?n rdf:type ontology:common_name . ?v rdf:type ontology:recurring_sporting_event } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { resource:1965_Tour_de_France property:winner ?g . ?g rdf:type ontology:recurring_sporting_event } } . FILTER ( ?w > ?p ) }
[]