Simple Question (Direct)
Simple Question
Q16268011
P734
Q82799
USER
Who has the surname Raymond Frey ?
(Q16268011,P734,c(Q82799))
action filter_type
action find
entity Q16268011
relation P734
type Q82799
['Q16268011', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?f WHERE { resource:Q16268011 property:P734 ?f . ?f rdf:type ontology:Q82799 }
Raymond Frey
action filter_type
action find
entity Raymond Frey
relation family name
type name
['Raymond Frey', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?f WHERE { resource:Raymond_Frey property:family_name ?f . ?f rdf:type ontology:name }
[]
name
Q14787975
SYSTEM
Frey
Q14787975
(Q16268011,P734,c(Q82799))
action filter_type
action find
entity Q16268011
relation P734
type Q82799
[ANSWER] has the surname Raymond [ANSWER]
['Q16268011', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?f WHERE { resource:Q16268011 property:P734 ?f . ?f rdf:type ontology:Q82799 }
Frey
Frey has the surname Raymond Frey
Frey
action filter_type
action find
entity Raymond Frey
relation family name
type name
['Raymond Frey', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?f WHERE { resource:Raymond_Frey property:family_name ?f . ?f rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16268011
P21
Q290
USER
Which sex does that person have ?
(Q14787975,P21,c(Q290))
action filter_type
action find
entity Q16268011
relation P21
type Q290
['Q14787975', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q16268011 property:P21 ?s . ?s rdf:type ontology:Q290 }
Raymond Frey
action filter_type
action find
entity Raymond Frey
relation gender
type sex
['Frey', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Raymond_Frey property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q14787975,P21,c(Q290))
action filter_type
action find
entity Q16268011
relation P21
type Q290
That person has a [ANSWER]
['Q14787975', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q16268011 property:P21 ?s . ?s rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Raymond Frey
relation gender
type sex
['Frey', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Raymond_Frey property:gender ?s . ?s rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3437969 Q16268011
P19
Q56061
USER
Which administrative territories were Raymond Frey or Cam Weaver born in ?
OR((Q16268011,P19,c(Q56061)), (Q3437969,P19,c(Q56061)))
action filter_type
action union
action find
entity Q16268011
relation P19
action find
entity Q3437969
relation P19
type Q56061
{'OR': [['Q16268011', 'P19', {'concept': 'Q56061'}], ['Q3437969', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q56061 . { { resource:Q16268011 property:P19 ?y } UNION { resource:Q3437969 property:P19 ?y } } }
Cam Weaver Raymond Frey
action filter_type
action union
action find
entity Raymond Frey
relation place of birth
action find
entity Cam Weaver
relation place of birth
type administrative territorial entity
{'OR': [['Raymond Frey', 'place of birth', {'concept': 'administrative territorial entity'}], ['Cam Weaver', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:administrative_territorial_entity . { { resource:Raymond_Frey property:place_of_birth ?y } UNION { resource:Cam_Weaver property:place_of_birth ?y } } }
[]
administrative territorial entity
Q7880 Q844008
SYSTEM
Toulouse, Kent
Q7880 Q844008
OR((Q16268011,P19,c(Q56061)), (Q3437969,P19,c(Q56061)))
action filter_type
action union
action find
entity Q16268011
relation P19
action find
entity Q3437969
relation P19
type Q56061
Raymond Frey or Cam Weaver were born in [ANSWERS]
{'OR': [['Q16268011', 'P19', {'concept': 'Q56061'}], ['Q3437969', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q56061 . { { resource:Q16268011 property:P19 ?y } UNION { resource:Q3437969 property:P19 ?y } } }
Toulouse Kent
Raymond Frey or Cam Weaver were born in Toulouse and Kent
Toulouse Kent
action filter_type
action union
action find
entity Raymond Frey
relation place of birth
action find
entity Cam Weaver
relation place of birth
type administrative territorial entity
{'OR': [['Raymond Frey', 'place of birth', {'concept': 'administrative territorial entity'}], ['Cam Weaver', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:administrative_territorial_entity . { { resource:Raymond_Frey property:place_of_birth ?y } UNION { resource:Cam_Weaver property:place_of_birth ?y } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q82799 Q838948 Q1792379
USER
How many names are depicted in approximately 1 works of art or art genres ?
(c(Q838948)|c(Q1792379),P180,c(Q82799))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q838948
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
value 1
[[{'concept': 'Q838948'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?b ) WHERE { { ?w rdf:type ontology:Q82799 . ?s rdf:type ontology:Q838948 . ?s property:P180 ?w } UNION { ?w rdf:type ontology:Q82799 . ?s rdf:type ontology:Q1792379 . ?s property:P180 ?w } } GROUP BY ?w } . FILTER ( ?b = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type work of art
action find_reverse_tuple_counts
relation depicts
type name
type art genre
value 1
[[{'concept': 'work of art'}, {'concept': 'art genre'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?b ) WHERE { { ?w rdf:type ontology:name . ?s rdf:type ontology:work_of_art . ?s property:depicts ?w } UNION { ?w rdf:type ontology:name . ?s rdf:type ontology:art_genre . ?s property:depicts ?w } } GROUP BY ?w } . FILTER ( ?b = 1 ) }
[]
name work of art art genre
SYSTEM
54
Q13219075 Q134609 Q5 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q2092297 Q11946202 Q144 Q2258881 Q4767951 Q16529344 Q24067392 Q713019 Q1807269 Q201251 Q8331 Q8335 Q846664 Q3116510 Q3537778 Q1865281 Q1367 Q1192868 Q9394 Q2734060 Q2495957 Q1953597 Q15629245 Q25894 Q1466321 Q43115 Q858243 Q876933 Q190294 Q7378 Q123120 Q214169 Q538906 Q308841 Q1360763 Q83931 Q9458574 Q152 Q5070208 Q859257 Q10968813
(c(Q838948)|c(Q1792379),P180,c(Q82799))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q838948
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
value 1
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?b ) WHERE { { ?w rdf:type ontology:Q82799 . ?s rdf:type ontology:Q838948 . ?s property:P180 ?w } UNION { ?w rdf:type ontology:Q82799 . ?s rdf:type ontology:Q1792379 . ?s property:P180 ?w } } GROUP BY ?w } . FILTER ( ?b = 1 ) }
octopus Cynara scolymus human toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin eagle butterfly dog trout cattle goose Boy cannoneer leek peacock fox raven hawk frog donkeys whale monkey clam rabbit reed magpie slug lizard antelope Yellow jacket saint Tree squirrel magi mouflon elephant vulture pheasant thistle snail Scipio locust wasp fish kangaroo fly jay
54
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type work of art
action find_reverse_tuple_counts
relation depicts
type name
type art genre
value 1
[[{'concept': 'work of art'}, {'concept': 'art genre'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?b ) WHERE { { ?w rdf:type ontology:name . ?s rdf:type ontology:work_of_art . ?s property:depicts ?w } UNION { ?w rdf:type ontology:name . ?s rdf:type ontology:art_genre . ?s property:depicts ?w } } GROUP BY ?w } . FILTER ( ?b = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7880
P276
Q1190554
USER
Which events have their location as Toulouse ?
(c(Q1190554),P276,Q7880)
action filter_type
action find_reverse
entity Q7880
relation P276
type Q1190554
[{'concept': 'Q1190554'}, 'P276', 'Q7880']
SELECT DISTINCT ?x WHERE { ?x property:P276 resource:Q7880 . ?x rdf:type ontology:Q1190554 }
Toulouse
action filter_type
action find_reverse
entity Toulouse
relation location
type event
[{'concept': 'event'}, 'location', 'Toulouse']
SELECT DISTINCT ?x WHERE { ?x property:location resource:Toulouse . ?x rdf:type ontology:event }
[]
event
Q23725830 Q652320 Q2885195
SYSTEM
Nuit debout, Battle of Toulouse, Battle of Toulouse
Q23725830 Q652320 Q2885195
(c(Q1190554),P276,Q7880)
action filter_type
action find_reverse
entity Q7880
relation P276
type Q1190554
[ANSWERS] have their location as Toulouse
[{'concept': 'Q1190554'}, 'P276', 'Q7880']
SELECT DISTINCT ?x WHERE { ?x property:P276 resource:Q7880 . ?x rdf:type ontology:Q1190554 }
Nuit debout Battle of Toulouse Battle of Toulouse
Nuit debout, Battle of Toulouse and Battle of Toulouse have their location as Toulouse
Nuit debout Battle of Toulouse Battle of Toulouse
action filter_type
action find_reverse
entity Toulouse
relation location
type event
[{'concept': 'event'}, 'location', 'Toulouse']
SELECT DISTINCT ?x WHERE { ?x property:location resource:Toulouse . ?x rdf:type ontology:event }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q23725830 Q652320 Q2885195
P276
Q56061
USER
Which administrative territories are the place where Nuit debout, Battle of Toulouse and Battle of Toulouse are located ?
(Q23725830,P276,c(Q56061)) (Q652320,P276,c(Q56061)) (Q2885195,P276,c(Q56061))
action union
action filter_type
action find
entity Q23725830
relation P276
type Q56061
action filter_type
action find
entity Q652320
relation P276
type Q56061
action filter_type
action find
entity Q2885195
relation P276
type Q56061
['Q23725830', 'P276', {'concept': 'Q56061'}] ['Q652320', 'P276', {'concept': 'Q56061'}] ['Q2885195', 'P276', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { { resource:Q23725830 property:P276 ?r . ?r rdf:type ontology:Q56061 } UNION { resource:Q652320 property:P276 ?r . ?r rdf:type ontology:Q56061 } }
Nuit debout Battle of Toulouse Battle of Toulouse
action union
action filter_type
action find
entity Nuit debout
relation location
type administrative territorial entity
action filter_type
action find
entity Battle of Toulouse
relation location
type administrative territorial entity
action filter_type
action find
entity Battle of Toulouse
relation location
type administrative territorial entity
['Nuit debout', 'location', {'concept': 'administrative territorial entity'}] ['Battle of Toulouse', 'location', {'concept': 'administrative territorial entity'}] ['Battle of Toulouse', 'location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { resource:Nuit_debout property:location ?r . ?r rdf:type ontology:administrative_territorial_entity } UNION { resource:Battle_of_Toulouse property:location ?r . ?r rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q2807 Q64 Q647
SYSTEM
Madrid, Berlin, Rennes
Q647 Q648 Q12225 Q1479 Q1289 Q90 Q15695 Q37776 Q15088 Q42810 Q33959 Q3992 Q41604 Q12191 Q41876 Q7880 Q10305 Q239 Q2807 Q597 Q8818 Q64 Q6441 Q7880 Q7880
(Q23725830,P276,c(Q56061)) (Q652320,P276,c(Q56061)) (Q2885195,P276,c(Q56061))
action union
action filter_type
action find
entity Q23725830
relation P276
type Q56061
action filter_type
action find
entity Q652320
relation P276
type Q56061
action filter_type
action find
entity Q2885195
relation P276
type Q56061
[ANSWERS] are the place where Nuit debout, Battle of Toulouse and Battle of Toulouse are located
['Q23725830', 'P276', {'concept': 'Q56061'}] ['Q652320', 'P276', {'concept': 'Q56061'}] ['Q2885195', 'P276', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { { resource:Q23725830 property:P276 ?r . ?r rdf:type ontology:Q56061 } UNION { resource:Q652320 property:P276 ?r . ?r rdf:type ontology:Q56061 } }
Rennes Lille Murcia Bordeaux Grenoble Paris Salamanca Besançon Tarragona Le Havre Nice Liège Amiens Nantes Reims Toulouse Zaragoza Brussels Madrid Lisbon Valencia Berlin Montpellier Toulouse Toulouse
Madrid, Berlin and Rennes are the place where Nuit debout, Battle of Toulouse and Battle of Toulouse are located
Madrid Berlin Rennes
action union
action filter_type
action find
entity Nuit debout
relation location
type administrative territorial entity
action filter_type
action find
entity Battle of Toulouse
relation location
type administrative territorial entity
action filter_type
action find
entity Battle of Toulouse
relation location
type administrative territorial entity
['Nuit debout', 'location', {'concept': 'administrative territorial entity'}] ['Battle of Toulouse', 'location', {'concept': 'administrative territorial entity'}] ['Battle of Toulouse', 'location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { resource:Nuit_debout property:location ?r . ?r rdf:type ontology:administrative_territorial_entity } UNION { resource:Battle_of_Toulouse property:location ?r . ?r rdf:type ontology:administrative_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q23725830
P941
Q1914636
USER
What were that event inspired by ?
(Q23725830,P941,c(Q1914636))
action filter_type
action find
entity Q23725830
relation P941
type Q1914636
['Q23725830', 'P941', {'concept': 'Q1914636'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1914636 . resource:Q23725830 property:P941 ?s }
Nuit debout
action filter_type
action find
entity Nuit debout
relation inspired by
type activity
['Nuit debout', 'inspired by', {'concept': 'activity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:activity . resource:Nuit_debout property:inspired_by ?s }
[]
activity
Clarification for simple ques.
Q23725830
SYSTEM
Did you mean Nuit debout ?
Q2807 Q64 Q647
(Q2807,P941,c(Q1914636)) (Q64,P941,c(Q1914636)) (Q647,P941,c(Q1914636))
[ANSWER]
['Q2807', 'P941', {'concept': 'Q1914636'}] ['Q64', 'P941', {'concept': 'Q1914636'}] ['Q647', 'P941', {'concept': 'Q1914636'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1914636 . resource:Q23725830 property:P941 ?s }
Madrid Berlin Rennes
Did you mean Nuit debout ?
Nuit debout
['Madrid', 'inspired by', {'concept': 'activity'}] ['Berlin', 'inspired by', {'concept': 'activity'}] ['Rennes', 'inspired by', {'concept': 'activity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:activity . resource:Nuit_debout property:inspired_by ?s }
[]
Simple Question (Coreferenced)
USER
Yes
(Q23725830,P941,c(Q1914636))
['Q23725830', 'P941', {'concept': 'Q1914636'}]
['Nuit debout', 'inspired by', {'concept': 'activity'}]
[]
Q735377 Q180654
SYSTEM
2011–2012 Spanish protests, Occupy Wall Street
Q735377 Q180654
(Q23725830,P941,c(Q1914636))
action filter_type
action find
entity Q23725830
relation P941
type Q1914636
That event were inspired by [ANSWERS]
['Q23725830', 'P941', {'concept': 'Q1914636'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1914636 . resource:Q23725830 property:P941 ?s }
2011–2012 Spanish protests Occupy Wall Street
That event were inspired by 2011–2012 Spanish protests and Occupy Wall Street
2011–2012 Spanish protests Occupy Wall Street
action filter_type
action find
entity Nuit debout
relation inspired by
type activity
['Nuit debout', 'inspired by', {'concept': 'activity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:activity . resource:Nuit_debout property:inspired_by ?s }
[]