Simple Question (Direct)
Simple Question
Q2848115
P27
Q15617994
USER
Which administrative territory is André Le Gall a civilian of ?
(Q2848115,P27,c(Q15617994))
action filter_type
action find
entity Q2848115
relation P27
type Q15617994
['Q2848115', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q2848115 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
André Le Gall
action filter_type
action find
entity André Le Gall
relation country of citizenship
type designation for an administrative territorial entity
['André Le Gall', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:André_Le_Gall property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q2848115,P27,c(Q15617994))
action filter_type
action find
entity Q2848115
relation P27
type Q15617994
[ANSWER]
['Q2848115', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q2848115 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
France
France
action filter_type
action find
entity André Le Gall
relation country of citizenship
type designation for an administrative territorial entity
['André Le Gall', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:André_Le_Gall property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2848115
P161
Q838948
USER
Which works of art stars that person as actor ?
(c(Q838948),P161,Q142)
action filter_type
action find_reverse
entity Q2848115
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q142']
SELECT DISTINCT ?f WHERE { ?f property:P161 resource:Q2848115 . ?f rdf:type ontology:Q838948 }
André Le Gall
action filter_type
action find_reverse
entity André Le Gall
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'France']
SELECT DISTINCT ?f WHERE { ?f property:cast_member resource:André_Le_Gall . ?f rdf:type ontology:work_of_art }
[]
work of art
Q16671455 Q3163466 Q953202
SYSTEM
Prélude à la gloire, I Like Only You, Fantômas
Q16671455 Q3163466 Q953202
(c(Q838948),P161,Q142)
action filter_type
action find_reverse
entity Q2848115
relation P161
type Q838948
[ANSWERS]
[{'concept': 'Q838948'}, 'P161', 'Q142']
SELECT DISTINCT ?f WHERE { ?f property:P161 resource:Q2848115 . ?f rdf:type ontology:Q838948 }
Prélude à la gloire I Like Only You Fantômas
Prélude à la gloire I Like Only You Fantômas
action filter_type
action find_reverse
entity André Le Gall
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'France']
SELECT DISTINCT ?f WHERE { ?f property:cast_member resource:André_Le_Gall . ?f rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q11985183 Q2848115
P19
Q56061
USER
Which administrative territories were André Le Gall or Eva Režnarová born at ?
OR((Q2848115,P19,c(Q56061)), (Q11985183,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2848115
relation P19
action find
entity Q11985183
relation P19
type Q56061
{'OR': [['Q2848115', 'P19', {'concept': 'Q56061'}], ['Q11985183', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q11985183 property:P19 ?a } UNION { resource:Q2848115 property:P19 ?a } } . ?a rdf:type ontology:Q56061 }
Eva Režnarová André Le Gall
action filter_type
action union
action find
entity André Le Gall
relation place of birth
action find
entity Eva Režnarová
relation place of birth
type administrative territorial entity
{'OR': [['André Le Gall', 'place of birth', {'concept': 'administrative territorial entity'}], ['Eva Režnarová', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Eva_Režnarová property:place_of_birth ?a } UNION { resource:André_Le_Gall property:place_of_birth ?a } } . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8385 Q90
SYSTEM
Ostrava, Paris
Q8385 Q90
OR((Q2848115,P19,c(Q56061)), (Q11985183,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2848115
relation P19
action find
entity Q11985183
relation P19
type Q56061
[ANSWERS]
{'OR': [['Q2848115', 'P19', {'concept': 'Q56061'}], ['Q11985183', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q11985183 property:P19 ?a } UNION { resource:Q2848115 property:P19 ?a } } . ?a rdf:type ontology:Q56061 }
Ostrava Paris
Ostrava Paris
action filter_type
action union
action find
entity André Le Gall
relation place of birth
action find
entity Eva Režnarová
relation place of birth
type administrative territorial entity
{'OR': [['André Le Gall', 'place of birth', {'concept': 'administrative territorial entity'}], ['Eva Režnarová', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Eva_Režnarová property:place_of_birth ?a } UNION { resource:André_Le_Gall property:place_of_birth ?a } } . ?a rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q8385
P915
Q838948
USER
Which work of art was filmed at that administrative territory ?
(c(Q838948),P915,Q8385)
action filter_type
action find_reverse
entity Q8385
relation P915
type Q838948
[{'concept': 'Q838948'}, 'P915', 'Q8385']
SELECT DISTINCT ?u WHERE { ?u property:P915 resource:Q8385 . ?u rdf:type ontology:Q838948 }
Ostrava
action filter_type
action find_reverse
entity Ostrava
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Ostrava']
SELECT DISTINCT ?u WHERE { ?u property:filming_location resource:Ostrava . ?u rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q90
SYSTEM
Did you mean Paris ?
Q8385 Q90
(c(Q838948),P915,Q8385) (c(Q838948),P915,Q90)
[ANSWER]
[{'concept': 'Q838948'}, 'P915', 'Q8385'] [{'concept': 'Q838948'}, 'P915', 'Q90']
SELECT DISTINCT ?u WHERE { ?u property:P915 resource:Q8385 . ?u rdf:type ontology:Q838948 }
Ostrava Paris
Did you mean Paris ?
Paris
[{'concept': 'work of art'}, 'filming location', 'Ostrava'] [{'concept': 'work of art'}, 'filming location', 'Paris']
SELECT DISTINCT ?u WHERE { ?u property:filming_location resource:Ostrava . ?u rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
No, I meant Ostrava. Could you tell me the answer for that?
(c(Q838948),P915,Q8385)
Q8385
[{'concept': 'Q838948'}, 'P915', 'Q8385']
[{'concept': 'work of art'}, 'filming location', 'Ostrava']
[]
Q10856966
SYSTEM
The Way Out
Q10856966
(c(Q838948),P915,Q8385)
action filter_type
action find_reverse
entity Q8385
relation P915
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P915', 'Q8385']
SELECT DISTINCT ?u WHERE { ?u property:P915 resource:Q8385 . ?u rdf:type ontology:Q838948 }
The Way Out
The Way Out
action filter_type
action find_reverse
entity Ostrava
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Ostrava']
SELECT DISTINCT ?u WHERE { ?u property:filming_location resource:Ostrava . ?u rdf:type ontology:work_of_art }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q10856966 Q1402316
P1346
Q4220917
USER
Was Czech Lion for Best Film won by that work of art ?
(Q1402316,P1346,Q10856966)
action is_in
entity Q10856966
action find
entity Q1402316
relation P1346
['Q1402316', 'P1346', 'Q10856966']
ASK WHERE { resource:Q1402316 property:P1346 resource:Q10856966 }
The Way Out Czech Lion for Best Film
action is_in
entity The Way Out
action find
entity Czech Lion for Best Film
relation winner
['Czech Lion for Best Film', 'winner', 'The Way Out']
ASK WHERE { resource:Czech_Lion_for_Best_Film property:winner resource:The_Way_Out }
[]
film award
SYSTEM
YES
(Q1402316,P1346,Q10856966)
action is_in
entity Q10856966
action find
entity Q1402316
relation P1346
[ANSWER]
['Q1402316', 'P1346', 'Q10856966']
ASK WHERE { resource:Q1402316 property:P1346 resource:Q10856966 }
Yes
action is_in
entity The Way Out
action find
entity Czech Lion for Best Film
relation winner
['Czech Lion for Best Film', 'winner', 'The Way Out']
ASK WHERE { resource:Czech_Lion_for_Best_Film property:winner resource:The_Way_Out }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q10856966
P800
Q502895
USER
Who is author of that work of art ?
action filter_type
action find_reverse
entity Q10856966
relation P800
type Q502895
SELECT DISTINCT ?x WHERE { ?x property:P800 resource:Q10856966 . ?x rdf:type ontology:Q502895 }
The Way Out
action filter_type
action find_reverse
entity The Way Out
relation notable work
type common name
SELECT DISTINCT ?x WHERE { ?x property:notable_work resource:The_Way_Out . ?x rdf:type ontology:common_name }
[]
common name
Q16854358
SYSTEM
Petr Václav
Q16854358
action filter_type
action find_reverse
entity Q10856966
relation P800
type Q502895
[ANSWER]
SELECT DISTINCT ?x WHERE { ?x property:P800 resource:Q10856966 . ?x rdf:type ontology:Q502895 }
Petr Václav
Petr Václav
action filter_type
action find_reverse
entity The Way Out
relation notable work
type common name
SELECT DISTINCT ?x WHERE { ?x property:notable_work resource:The_Way_Out . ?x rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q80019
P1303
Q34379 Q502895
USER
Which musical instruments do less number of people know to play than double bass ?
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q80019
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?r ) WHERE { ?t property:P1303 ?y . ?y rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { ?d property:P1303 resource:Q80019 . ?d rdf:type ontology:Q502895 } } . FILTER ( ?r < ?u ) }
double bass
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity double bass
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?r ) WHERE { ?t property:instrument ?y . ?y rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { ?d property:instrument resource:double_bass . ?d rdf:type ontology:common_name } } . FILTER ( ?r < ?u ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q201129 Q424017 Q890073 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q80019
relation P1303
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?r ) WHERE { ?t property:P1303 ?y . ?y rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { ?d property:P1303 resource:Q80019 . ?d rdf:type ontology:Q502895 } } . FILTER ( ?r < ?u ) }
viola lyre acoustic bass guitar Body percussion davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
davul harpsichord Wurlitzer electric piano
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity double bass
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?r ) WHERE { ?t property:instrument ?y . ?y rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { ?d property:instrument resource:double_bass . ?d rdf:type ontology:common_name } } . FILTER ( ?r < ?u ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P870
Q34379 Q207628 Q9748
USER
How many musical instruments are used as instrumentation in more number of musical compositions and concertoes than that musical instrument ?
(c(Q207628)|c(Q9748),P870,c(Q34379))
[[{'concept': 'Q207628'}, {'concept': 'Q9748'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?b ) { ( ?z ) ( ?x ) } . ?b property:Q617028 ?y } . ?z rdf:type ontology:Q207628 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q9748 }
[[{'concept': 'musical composition'}, {'concept': 'concerto'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?b ) { ( ?z ) ( ?x ) } . ?b property:instrumentation ?y } . ?z rdf:type ontology:musical_composition . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:concerto }
[]
musical instrument musical composition concerto
Comparative|Count over More/Less|Mult. entity type|Clarification
Q1759986
SYSTEM
Did you mean Wurlitzer electric piano ?
(c(Q207628)|c(Q9748),P870,c(Q34379))
[ANSWER]
[[{'concept': 'Q207628'}, {'concept': 'Q9748'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?b ) { ( ?z ) ( ?x ) } . ?b property:Q617028 ?y } . ?z rdf:type ontology:Q207628 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q9748 }
Did you mean Wurlitzer electric piano ?
Wurlitzer electric piano
[[{'concept': 'musical composition'}, {'concept': 'concerto'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?b ) { ( ?z ) ( ?x ) } . ?b property:instrumentation ?y } . ?z rdf:type ontology:musical_composition . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:concerto }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant harpsichord. Could you tell me the answer for that?
(c(Q207628)|c(Q9748),P870,c(Q34379))
Q81982
[[{'concept': 'Q207628'}, {'concept': 'Q9748'}], 'P870', {'concept': 'Q34379'}]
[[{'concept': 'musical composition'}, {'concept': 'concerto'}], 'instrumentation', {'concept': 'musical instrument'}]
[]
SYSTEM
3
Q5994 Q1444 Q8355
(c(Q207628)|c(Q9748),P870,c(Q34379))
[ANSWER]
[[{'concept': 'Q207628'}, {'concept': 'Q9748'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:Q617028 ?y } UNION { ?x property:Q617028 ?y } } . ?z rdf:type ontology:Q207628 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q9748 }
piano organ violin
3
[[{'concept': 'musical composition'}, {'concept': 'concerto'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:instrumentation ?y } UNION { ?x property:instrumentation ?y } } . ?z rdf:type ontology:musical_composition . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:concerto }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P169
Q502895 Q334453 Q11032
USER
Which people are the CEO of exactly 1 divisions or newspapers ?
(c(Q334453)|c(Q11032),P169,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P169
type Q502895
type Q334453
action find_reverse_tuple_counts
relation P169
type Q502895
type Q11032
value 1
[[{'concept': 'Q334453'}, {'concept': 'Q11032'}], 'P169', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) ?h WHERE { ?d rdf:type ?t . VALUES ( ?t ) { ( ontology:Q334453 ) ( ontology:Q11032 ) } } GROUP BY ?h } . FILTER ( ?l = 1 ) }
action equal
action union
action find_reverse_tuple_counts
relation chief executive officer
type common name
type division
action find_reverse_tuple_counts
relation chief executive officer
type common name
type newspaper
value 1
[[{'concept': 'division'}, {'concept': 'newspaper'}], 'chief executive officer', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) ?h WHERE { ?d rdf:type ?t . VALUES ( ?t ) { ( ontology:division ) ( ontology:newspaper ) } } GROUP BY ?h } . FILTER ( ?l = 1 ) }
[]
common name division newspaper
Q429046 Q491580 Q186601
SYSTEM
Jay Park, Eric Mun, Lee Min-woo
Q1670490 Q11898683 Q16188729 Q491580 Q429046 Q12588013 Q20203686 Q7608947 Q6070096 Q12606246 Q6161101 Q186601 Q2756226 Q659356 Q11928620 Q10321870 Q11935031
(c(Q334453)|c(Q11032),P169,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P169
type Q502895
type Q334453
action find_reverse_tuple_counts
relation P169
type Q502895
type Q11032
value 1
[ANSWERS]
[[{'concept': 'Q334453'}, {'concept': 'Q11032'}], 'P169', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) ?h WHERE { ?d rdf:type ?t . VALUES ( ?t ) { ( ontology:Q334453 ) ( ontology:Q11032 ) } } GROUP BY ?h } . FILTER ( ?l = 1 ) }
Wolfgang Büchner Tuomo Saikkonen Jaume Claramunt i Mesa Eric Mun Jay Park Kim Youngmin José María de Mora Stephen Cooper Pedro Sala y Villaret Yang Min-suk Vicente Díez Canseco Lee Min-woo Simon Dominic Luis José Sartorius, 1st Count of San Luis Josep Laribal Lastortras Lyor Cohen Manuel de Lasarte i Rodríguez-Cardoso
Jay Park Eric Mun Lee Min-woo
action equal
action union
action find_reverse_tuple_counts
relation chief executive officer
type common name
type division
action find_reverse_tuple_counts
relation chief executive officer
type common name
type newspaper
value 1
[[{'concept': 'division'}, {'concept': 'newspaper'}], 'chief executive officer', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) ?h WHERE { ?d rdf:type ?t . VALUES ( ?t ) { ( ontology:division ) ( ontology:newspaper ) } } GROUP BY ?h } . FILTER ( ?l = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q8385 Q499451
P937
Q502895
USER
How many people have Ostrava or Rutgers University as their work location ?
(c(Q502895),P937,Q8385) (c(Q502895),P937,Q499451)
action count
action union
action filter_type
action find_reverse
entity Q8385
relation P937
type Q502895
action filter_type
action find_reverse
entity Q499451
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q8385'] [{'concept': 'Q502895'}, 'P937', 'Q499451']
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { { ?g property:P937 resource:Q8385 . ?g rdf:type ontology:Q502895 } UNION { ?g property:P937 resource:Q499451 . ?g rdf:type ontology:Q502895 } }
Ostrava Rutgers University
action count
action union
action filter_type
action find_reverse
entity Ostrava
relation work location
type common name
action filter_type
action find_reverse
entity Rutgers University
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Ostrava'] [{'concept': 'common name'}, 'work location', 'Rutgers University']
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { { ?g property:work_location resource:Ostrava . ?g rdf:type ontology:common_name } UNION { ?g property:work_location resource:Rutgers_University . ?g rdf:type ontology:common_name } }
[]
common name
SYSTEM
2
Q88141 Q448592
(c(Q502895),P937,Q8385) (c(Q502895),P937,Q499451)
action count
action union
action filter_type
action find_reverse
entity Q8385
relation P937
type Q502895
action filter_type
action find_reverse
entity Q499451
relation P937
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P937', 'Q8385'] [{'concept': 'Q502895'}, 'P937', 'Q499451']
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { { ?g property:P937 resource:Q8385 . ?g rdf:type ontology:Q502895 } UNION { ?g property:P937 resource:Q499451 . ?g rdf:type ontology:Q502895 } }
Magda Spiegel Saharon Shelah
2
action count
action union
action filter_type
action find_reverse
entity Ostrava
relation work location
type common name
action filter_type
action find_reverse
entity Rutgers University
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Ostrava'] [{'concept': 'common name'}, 'work location', 'Rutgers University']
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { { ?g property:work_location resource:Ostrava . ?g rdf:type ontology:common_name } UNION { ?g property:work_location resource:Rutgers_University . ?g rdf:type ontology:common_name } }
[]