Simple Question (Direct)
Simple Question
Q4831733
P21
Q290
USER
What is the sex of Aytekin Viduşlu ?
(Q4831733,P21,c(Q290))
action filter_type
action find
entity Q4831733
relation P21
type Q290
['Q4831733', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q4831733 property:P21 ?a . ?a rdf:type ontology:Q290 }
Aytekin Viduşlu
action filter_type
action find
entity Aytekin Viduşlu
relation gender
type sex
['Aytekin Viduşlu', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Aytekin_Viduşlu property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4831733,P21,c(Q290))
action filter_type
action find
entity Q4831733
relation P21
type Q290
The sex of Aytekin Viduşlu is a [ANSWER]
['Q4831733', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q4831733 property:P21 ?a . ?a rdf:type ontology:Q290 }
male
The sex of Aytekin Viduşlu is a male
male
action filter_type
action find
entity Aytekin Viduşlu
relation gender
type sex
['Aytekin Viduşlu', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Aytekin_Viduşlu property:gender ?a . ?a rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P136
Q502895
USER
Which people as that sex as their class ?
(c(Q502895),P136,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P136
type Q502895
[{'concept': 'Q502895'}, 'P136', 'Q6581097']
SELECT DISTINCT ?h WHERE { ?h property:P136 resource:Q6581097 . ?h rdf:type ontology:Q502895 }
male
action filter_type
action find_reverse
entity male
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'male']
SELECT DISTINCT ?h WHERE { ?h property:genre resource:male . ?h rdf:type ontology:common_name }
[]
common name
Q313288 Q18221191 Q23766532
SYSTEM
Augustus Pugin, Alessandro Gregorio Capponi, Pierre Laviron
Q19796723 Q23766532 Q313288 Q18221191
(c(Q502895),P136,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P136
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P136', 'Q6581097']
SELECT DISTINCT ?h WHERE { ?h property:P136 resource:Q6581097 . ?h rdf:type ontology:Q502895 }
Francesc Xavier Avilés i Puigvert Pierre Laviron Augustus Pugin Alessandro Gregorio Capponi
Augustus Pugin Alessandro Gregorio Capponi Pierre Laviron
action filter_type
action find_reverse
entity male
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'male']
SELECT DISTINCT ?h WHERE { ?h property:genre resource:male . ?h rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can exactly 5 people perform with ?
(c(Q502895),P1303,c(Q34379))
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 5
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?k ) WHERE { ?g rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 . ?j property:P1303 ?g } GROUP BY ?g } . FILTER ( ?k = 5 ) }
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 5
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?k ) WHERE { ?g rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name . ?j property:instrument ?g } GROUP BY ?g } . FILTER ( ?k = 5 ) }
[]
musical instrument common name
Q213461 Q213100
SYSTEM
harmonium, tabla
Q213461 Q213100
(c(Q502895),P1303,c(Q34379))
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 5
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?k ) WHERE { ?g rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 . ?j property:P1303 ?g } GROUP BY ?g } . FILTER ( ?k = 5 ) }
harmonium tabla
Which musical instruments can exactly 5 people perform with
harmonium tabla
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 5
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?k ) WHERE { ?g rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name . ?j property:instrument ?g } GROUP BY ?g } . FILTER ( ?k = 5 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q27087718
P180
Q34379 Q1792379
USER
How many art genres express approximately the same number of musical instruments as Bust Of Sir Henry Tate, Outside Tate Library, Brixton Oval ?
(c(Q1792379),P180,c(Q34379))
action count
action approx
action find_tuple_counts
relation P180
type Q1792379
type Q34379
action count
action filter_type
action find
entity Q27087718
relation P180
type Q1792379
[{'concept': 'Q1792379'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { resource:Q27087718 property:P180 ?w . ?w rdf:type ontology:Q1792379 } } . FILTER ( ?s = ?p ) . { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?s ) WHERE { ?y property:P180 ?x . ?y rdf:type ontology:Q1792379 . ?x rdf:type ontology:Q34379 } GROUP BY ?y } }
Bust Of Sir Henry Tate, Outside Tate Library, Brixton Oval
action count
action approx
action find_tuple_counts
relation depicts
type art genre
type musical instrument
action count
action filter_type
action find
entity Bust Of Sir Henry Tate, Outside Tate Library, Brixton Oval
relation depicts
type art genre
[{'concept': 'art genre'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { resource:Bust_Of_Sir_Henry_Tate,_Outside_Tate_Library,_Brixton_Oval property:depicts ?w . ?w rdf:type ontology:art_genre } } . FILTER ( ?s = ?p ) . { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?s ) WHERE { ?y property:depicts ?x . ?y rdf:type ontology:art_genre . ?x rdf:type ontology:musical_instrument } GROUP BY ?y } }
[]
musical instrument art genre
SYSTEM
51
Q21856809 Q26267230 Q1189907 Q22677514 Q3362398 Q2963437 Q22073388 Q26318263 Q4668641 Q22670282 Q2302151 Q5883078 Q3687196 Q18353841 Q22915045 Q26706171 Q26928600 Q5712848 Q3900659 Q742530 Q18688281 Q742333 Q937330 Q3374376 Q1615638 Q22677763 Q22677825 Q6944995 Q248726 Q27087718 Q3207118 Q22670323 Q26317896 Q214127 Q315569 Q1353984 Q3399515 Q158607 Q659396 Q18559971 Q18917896 Q26709687 Q22575803 Q1339864 Q2415378 Q191163 Q18579186 Q5448026 Q12303833 Q22677734 Q26668969
(c(Q1792379),P180,c(Q34379))
action count
action approx
action find_tuple_counts
relation P180
type Q1792379
type Q34379
action count
action filter_type
action find
entity Q27087718
relation P180
type Q1792379
[ANSWER]
[{'concept': 'Q1792379'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { resource:Q27087718 property:P180 ?w . ?w rdf:type ontology:Q1792379 } } . FILTER ( ?s = ?p ) . { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?s ) WHERE { ?y property:P180 ?x . ?y rdf:type ontology:Q1792379 . ?x rdf:type ontology:Q34379 } GROUP BY ?y } }
Selim Palmgren Portrait of a king of marksmen (presumably Jacobus Albertus de Backer) Water Lilies Market place parliament Panorama du Caire One Thousand Pictures of the Ocean (Chie no umi) Henry M. Jackson Bust of Edward VII Above and Below Crying girl animal painting Hollywood novel Christ's Charge to Peter Architectural painting Zinc sculptures of the Pori town hall Sir Austen Henry Layard Existentialist literature Self-Portrait with Monkey The Miraculous Draught of Fishes idyll Portrait of A.S.Pushkin history painting kouros mythological painting submarine films Statue of Risto Ryti Maire-sculpture My Bed Venus figurine Bust Of Sir Henry Tate, Outside Tate Library, Brixton Oval The Ring of Fire JUHANA III - The king of Sweden 1568-1592 -relief Monument To John Heminge And Henry Condell In Former Churchyard Of Church Of St Mary Aldermanbury genre painting Karl Marx Monument landscape photography equestrian portrait marine art equestrian statue Rock art at Åbodsjön history sculpture Antoine Coypel Going swimming, from the theme mother and child sports film schutterstuk landscape art Petrus Franciscus Greive (1811-1872) figure painting floral painting Statue of Duke John Bust Of Sir Joseph Paxton At Crystal Palace Park
51
action count
action approx
action find_tuple_counts
relation depicts
type art genre
type musical instrument
action count
action filter_type
action find
entity Bust Of Sir Henry Tate, Outside Tate Library, Brixton Oval
relation depicts
type art genre
[{'concept': 'art genre'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { resource:Bust_Of_Sir_Henry_Tate,_Outside_Tate_Library,_Brixton_Oval property:depicts ?w . ?w rdf:type ontology:art_genre } } . FILTER ( ?s = ?p ) . { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?s ) WHERE { ?y property:depicts ?x . ?y rdf:type ontology:art_genre . ?x rdf:type ontology:musical_instrument } GROUP BY ?y } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q18688281
P180
Q34379 Q1792379
USER
And what about Portrait of A.S.Pushkin?
(c(Q1792379),P180,c(Q34379))
action count
action approx
action find_tuple_counts
relation P180
type Q1792379
type Q34379
action count
action filter_type
action find
entity Q18688281
relation P180
type Q1792379
[{'concept': 'Q1792379'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?c ) WHERE { ?n property:P180 ?w . ?n rdf:type ontology:Q1792379 . ?w rdf:type ontology:Q34379 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Q18688281 property:P180 ?e . ?e rdf:type ontology:Q1792379 } } . FILTER ( ?c = ?f ) }
Portrait of A.S.Pushkin
action count
action approx
action find_tuple_counts
relation depicts
type art genre
type musical instrument
action count
action filter_type
action find
entity Portrait of A.S.Pushkin
relation depicts
type art genre
[{'concept': 'art genre'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?c ) WHERE { ?n property:depicts ?w . ?n rdf:type ontology:art_genre . ?w rdf:type ontology:musical_instrument } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Portrait_of_A.S.Pushkin property:depicts ?e . ?e rdf:type ontology:art_genre } } . FILTER ( ?c = ?f ) }
[]
musical instrument art genre
SYSTEM
51
Q21856809 Q26267230 Q1189907 Q22677514 Q3362398 Q2963437 Q22073388 Q26318263 Q4668641 Q22670282 Q2302151 Q5883078 Q3687196 Q18353841 Q22915045 Q26706171 Q26928600 Q5712848 Q3900659 Q742530 Q18688281 Q742333 Q937330 Q3374376 Q1615638 Q22677763 Q22677825 Q6944995 Q248726 Q27087718 Q3207118 Q22670323 Q26317896 Q214127 Q315569 Q1353984 Q3399515 Q158607 Q659396 Q18559971 Q18917896 Q26709687 Q22575803 Q1339864 Q2415378 Q191163 Q18579186 Q5448026 Q12303833 Q22677734 Q26668969
(c(Q1792379),P180,c(Q34379))
action count
action approx
action find_tuple_counts
relation P180
type Q1792379
type Q34379
action count
action filter_type
action find
entity Q18688281
relation P180
type Q1792379
[ANSWER]
[{'concept': 'Q1792379'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?c ) WHERE { ?n property:P180 ?w . ?n rdf:type ontology:Q1792379 . ?w rdf:type ontology:Q34379 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Q18688281 property:P180 ?e . ?e rdf:type ontology:Q1792379 } } . FILTER ( ?c = ?f ) }
Selim Palmgren Portrait of a king of marksmen (presumably Jacobus Albertus de Backer) Water Lilies Market place parliament Panorama du Caire One Thousand Pictures of the Ocean (Chie no umi) Henry M. Jackson Bust of Edward VII Above and Below Crying girl animal painting Hollywood novel Christ's Charge to Peter Architectural painting Zinc sculptures of the Pori town hall Sir Austen Henry Layard Existentialist literature Self-Portrait with Monkey The Miraculous Draught of Fishes idyll Portrait of A.S.Pushkin history painting kouros mythological painting submarine films Statue of Risto Ryti Maire-sculpture My Bed Venus figurine Bust Of Sir Henry Tate, Outside Tate Library, Brixton Oval The Ring of Fire JUHANA III - The king of Sweden 1568-1592 -relief Monument To John Heminge And Henry Condell In Former Churchyard Of Church Of St Mary Aldermanbury genre painting Karl Marx Monument landscape photography equestrian portrait marine art equestrian statue Rock art at Åbodsjön history sculpture Antoine Coypel Going swimming, from the theme mother and child sports film schutterstuk landscape art Petrus Franciscus Greive (1811-1872) figure painting floral painting Statue of Duke John Bust Of Sir Joseph Paxton At Crystal Palace Park
51
action count
action approx
action find_tuple_counts
relation depicts
type art genre
type musical instrument
action count
action filter_type
action find
entity Portrait of A.S.Pushkin
relation depicts
type art genre
[{'concept': 'art genre'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?c ) WHERE { ?n property:depicts ?w . ?n rdf:type ontology:art_genre . ?w rdf:type ontology:musical_instrument } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Portrait_of_A.S.Pushkin property:depicts ?e . ?e rdf:type ontology:art_genre } } . FILTER ( ?c = ?f ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by around 1400 people ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1400
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?p ) WHERE { ?b property:P1303 ?a . ?a rdf:type ontology:Q34379 . ?b rdf:type ontology:Q502895 } GROUP BY ?a } . FILTER ( ?p = 1400 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1400
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?p ) WHERE { ?b property:instrument ?a . ?a rdf:type ontology:musical_instrument . ?b rdf:type ontology:common_name } GROUP BY ?a } . FILTER ( ?p = 1400 ) }
[]
musical instrument common name
SYSTEM
12
Q80284 Q46185 Q80019 Q81982 Q206987 Q8338 Q8371 Q3382191 Q1444 Q128309 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1400
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?p ) WHERE { ?b property:P1303 ?a . ?a rdf:type ontology:Q34379 . ?b rdf:type ontology:Q502895 } GROUP BY ?a } . FILTER ( ?p = 1400 ) }
viola bass guitar double bass harpsichord vibraphone trumpet cello upright piano organ drum kit electronic keyboard drum
12
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1400
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?p ) WHERE { ?b property:instrument ?a . ?a rdf:type ontology:musical_instrument . ?b rdf:type ontology:common_name } GROUP BY ?a } . FILTER ( ?p = 1400 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3877225 Q4831733
P27
Q15617994
USER
Which administrative territories do Aytekin Viduşlu or Nino Salvaneschi belong to ?
OR((Q4831733,P27,c(Q15617994)), (Q3877225,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q4831733
relation P27
action find
entity Q3877225
relation P27
type Q15617994
{'OR': [['Q4831733', 'P27', {'concept': 'Q15617994'}], ['Q3877225', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . { VALUES ( ?o ) { ( resource:Q3877225 ) ( resource:Q4831733 ) } . ?o property:P27 ?e } }
Nino Salvaneschi Aytekin Viduşlu
action filter_type
action union
action find
entity Aytekin Viduşlu
relation country of citizenship
action find
entity Nino Salvaneschi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Aytekin Viduşlu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Nino Salvaneschi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?o ) { ( resource:Nino_Salvaneschi ) ( resource:Aytekin_Viduşlu ) } . ?o property:country_of_citizenship ?e } }
[]
designation for an administrative territorial entity
Q38 Q43
SYSTEM
Italy, Turkey
Q38 Q43
OR((Q4831733,P27,c(Q15617994)), (Q3877225,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q4831733
relation P27
action find
entity Q3877225
relation P27
type Q15617994
Aytekin Viduşlu or Nino Salvaneschi belong to [ANSWERS]
{'OR': [['Q4831733', 'P27', {'concept': 'Q15617994'}], ['Q3877225', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . { VALUES ( ?o ) { ( resource:Q3877225 ) ( resource:Q4831733 ) } . ?o property:P27 ?e } }
Italy Turkey
Aytekin Viduşlu or Nino Salvaneschi belong to Italy and Turkey
Italy Turkey
action filter_type
action union
action find
entity Aytekin Viduşlu
relation country of citizenship
action find
entity Nino Salvaneschi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Aytekin Viduşlu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Nino Salvaneschi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?o ) { ( resource:Nino_Salvaneschi ) ( resource:Aytekin_Viduşlu ) } . ?o property:country_of_citizenship ?e } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q38
P276
Q502895 Q1190554
USER
How many people or events are located at Italy ?
(c(Q502895),P276,Q38) (c(Q1190554),P276,Q38)
action count
action union
action filter_type
action find_reverse
entity Q38
relation P276
type Q502895
action filter_type
action find_reverse
entity Q38
relation P276
type Q1190554
[{'concept': 'Q502895'}, 'P276', 'Q38'] [{'concept': 'Q1190554'}, 'P276', 'Q38']
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { ?m rdf:type ontology:Q502895 . ?m property:P276 resource:Q38 } UNION { ?m property:P276 resource:Q38 . ?m rdf:type ontology:Q1190554 } }
Italy
action count
action union
action filter_type
action find_reverse
entity Italy
relation location
type common name
action filter_type
action find_reverse
entity Italy
relation location
type event
[{'concept': 'common name'}, 'location', 'Italy'] [{'concept': 'event'}, 'location', 'Italy']
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { ?m rdf:type ontology:common_name . ?m property:location resource:Italy } UNION { ?m property:location resource:Italy . ?m rdf:type ontology:event } }
[]
common name event
SYSTEM
2
Q4245345 Q26905038
(c(Q502895),P276,Q38) (c(Q1190554),P276,Q38)
action count
action union
action filter_type
action find_reverse
entity Q38
relation P276
type Q502895
action filter_type
action find_reverse
entity Q38
relation P276
type Q1190554
[ANSWER]
[{'concept': 'Q502895'}, 'P276', 'Q38'] [{'concept': 'Q1190554'}, 'P276', 'Q38']
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { ?m rdf:type ontology:Q502895 . ?m property:P276 resource:Q38 } UNION { ?m property:P276 resource:Q38 . ?m rdf:type ontology:Q1190554 } }
Battle of Tornavento Massimo Di Primio
2
action count
action union
action filter_type
action find_reverse
entity Italy
relation location
type common name
action filter_type
action find_reverse
entity Italy
relation location
type event
[{'concept': 'common name'}, 'location', 'Italy'] [{'concept': 'event'}, 'location', 'Italy']
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { ?m rdf:type ontology:common_name . ?m property:location resource:Italy } UNION { ?m property:location resource:Italy . ?m rdf:type ontology:event } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P30
Q2221906
USER
Which geographic location is Italy located in ?
(Q38,P30,c(Q2221906))
action filter_type
action find
entity Q38
relation P30
type Q2221906
['Q38', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?o WHERE { resource:Q38 property:P30 ?o . ?o rdf:type ontology:Q2221906 }
Italy
action filter_type
action find
entity Italy
relation continent
type geographic location
['Italy', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?o WHERE { resource:Italy property:continent ?o . ?o rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q38,P30,c(Q2221906))
action filter_type
action find
entity Q38
relation P30
type Q2221906
Italy is located in [ANSWER]
['Q38', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?o WHERE { resource:Q38 property:P30 ?o . ?o rdf:type ontology:Q2221906 }
Europe
Italy is located in Europe
Europe
action filter_type
action find
entity Italy
relation continent
type geographic location
['Italy', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?o WHERE { resource:Italy property:continent ?o . ?o rdf:type ontology:geographic_location }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q46
P361
Q2221906
USER
What is that one a component of ?
(Q46,P361,c(Q2221906))
action filter_type
action find
entity Q46
relation P361
type Q2221906
['Q46', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?k WHERE { resource:Q46 property:P361 ?k . ?k rdf:type ontology:Q2221906 }
Europe
action filter_type
action find
entity Europe
relation part of
type geographic location
['Europe', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?k WHERE { resource:Europe property:part_of ?k . ?k rdf:type ontology:geographic_location }
[]
geographic location
Q5401
SYSTEM
Eurasia
Q5401
(Q46,P361,c(Q2221906))
action filter_type
action find
entity Q46
relation P361
type Q2221906
That one a component of is the [ANSWER]
['Q46', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?k WHERE { resource:Q46 property:P361 ?k . ?k rdf:type ontology:Q2221906 }
Eurasia
That one a component of is the Eurasia
Eurasia
action filter_type
action find
entity Europe
relation part of
type geographic location
['Europe', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?k WHERE { resource:Europe property:part_of ?k . ?k rdf:type ontology:geographic_location }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q1241381 Q23766532
P106
Q12737077
USER
Which occupations are the job of Pierre Laviron and Pierre-Victor Dautel ?
AND((Q23766532,P106,c(Q12737077)), (Q1241381,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q23766532
relation P106
action find
entity Q1241381
relation P106
type Q12737077
{'AND': [['Q23766532', 'P106', {'concept': 'Q12737077'}], ['Q1241381', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?v WHERE { resource:Q1241381 property:P106 ?v . resource:Q23766532 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
Pierre-Victor Dautel Pierre Laviron
action filter_type
action intersection
action find
entity Pierre Laviron
relation occupation
action find
entity Pierre-Victor Dautel
relation occupation
type occupation
{'AND': [['Pierre Laviron', 'occupation', {'concept': 'occupation'}], ['Pierre-Victor Dautel', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?v WHERE { resource:Pierre-Victor_Dautel property:occupation ?v . resource:Pierre_Laviron property:occupation ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q1281618
SYSTEM
sculptor
Q1281618
AND((Q23766532,P106,c(Q12737077)), (Q1241381,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q23766532
relation P106
action find
entity Q1241381
relation P106
type Q12737077
The [ANSWER] is the job of Pierre Laviron and Pierre-Victor Dautel
{'AND': [['Q23766532', 'P106', {'concept': 'Q12737077'}], ['Q1241381', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?v WHERE { resource:Q1241381 property:P106 ?v . resource:Q23766532 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
sculptor
The sculptor is the job of Pierre Laviron and Pierre-Victor Dautel
sculptor
action filter_type
action intersection
action find
entity Pierre Laviron
relation occupation
action find
entity Pierre-Victor Dautel
relation occupation
type occupation
{'AND': [['Pierre Laviron', 'occupation', {'concept': 'occupation'}], ['Pierre-Victor Dautel', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?v WHERE { resource:Pierre-Victor_Dautel property:occupation ?v . resource:Pierre_Laviron property:occupation ?v . ?v rdf:type ontology:occupation }
[]