Simple Question (Direct)
Simple Question
Q15987565
P734
Q82799
USER
Who is associated with Hillary Williams ?
(Q15987565,P734,c(Q82799))
action filter_type
action find
entity Q15987565
relation P734
type Q82799
['Q15987565', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?f WHERE { resource:Q15987565 property:P734 ?f . ?f rdf:type ontology:Q82799 }
Hillary Williams
action filter_type
action find
entity Hillary Williams
relation family name
type name
['Hillary Williams', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?f WHERE { resource:Hillary_Williams property:family_name ?f . ?f rdf:type ontology:name }
[]
name
Q1688722
SYSTEM
Williams
Q1688722
(Q15987565,P734,c(Q82799))
action filter_type
action find
entity Q15987565
relation P734
type Q82799
Was [ANSWER] is associated with Hillary [ANSWER]
['Q15987565', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?f WHERE { resource:Q15987565 property:P734 ?f . ?f rdf:type ontology:Q82799 }
Williams
Was Williams is associated with Hillary Williams
Williams
action filter_type
action find
entity Hillary Williams
relation family name
type name
['Hillary Williams', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?f WHERE { resource:Hillary_Williams property:family_name ?f . ?f rdf:type ontology:name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1688722 Q9056 Q1860
P407
Q34770
USER
Is that name composed in Czech and English ?
(Q1688722,P407,Q9056) (Q1688722,P407,Q1860)
action is_in
entity Q1688722
action intersection
action find_reverse
entity Q9056
relation P407
action find_reverse
entity Q1860
relation P407
['Q1688722', 'P407', 'Q9056'] ['Q1688722', 'P407', 'Q1860']
ASK WHERE { resource:Q1688722 property:P407 resource:Q9056 . resource:Q1688722 property:P407 resource:Q1860 }
Williams Czech English
action is_in
entity Williams
action intersection
action find_reverse
entity Czech
relation language of work or name
action find_reverse
entity English
relation language of work or name
['Williams', 'language of work or name', 'Czech'] ['Williams', 'language of work or name', 'English']
ASK WHERE { resource:Williams property:language_of_work_or_name resource:Czech . resource:Williams property:language_of_work_or_name resource:English }
[]
language
SYSTEM
NO and YES respectively
(Q1688722,P407,Q9056) (Q1688722,P407,Q1860)
action is_in
entity Q1688722
action intersection
action find_reverse
entity Q9056
relation P407
action find_reverse
entity Q1860
relation P407
[ANSWER]
['Q1688722', 'P407', 'Q9056'] ['Q1688722', 'P407', 'Q1860']
ASK WHERE { resource:Q1688722 property:P407 resource:Q9056 . resource:Q1688722 property:P407 resource:Q1860 }
NO and YES respectively
action is_in
entity Williams
action intersection
action find_reverse
entity Czech
relation language of work or name
action find_reverse
entity English
relation language of work or name
['Williams', 'language of work or name', 'Czech'] ['Williams', 'language of work or name', 'English']
ASK WHERE { resource:Williams property:language_of_work_or_name resource:Czech . resource:Williams property:language_of_work_or_name resource:English }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q15987565 Q30
P27
Q15617994
USER
Is United States of America the country of citizenship of Hillary Williams ?
(Q15987565,P27,Q30)
action is_in
entity Q30
action find
entity Q15987565
relation P27
['Q15987565', 'P27', 'Q30']
ASK WHERE { resource:Q15987565 property:P27 resource:Q30 }
Hillary Williams United States of America
action is_in
entity United States of America
action find
entity Hillary Williams
relation country of citizenship
['Hillary Williams', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Hillary_Williams property:country_of_citizenship resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q15987565,P27,Q30)
action is_in
entity Q30
action find
entity Q15987565
relation P27
[ANSWER]
['Q15987565', 'P27', 'Q30']
ASK WHERE { resource:Q15987565 property:P27 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Hillary Williams
relation country of citizenship
['Hillary Williams', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Hillary_Williams property:country_of_citizenship resource:United_States_of_America }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1688722 Q939483 Q162064
P407
Q34770
USER
Was Williams done in adstratum and African Romance language ?
(Q1688722,P407,Q939483) (Q1688722,P407,Q162064)
action is_in
entity Q1688722
action intersection
action find_reverse
entity Q939483
relation P407
action find_reverse
entity Q162064
relation P407
['Q1688722', 'P407', 'Q939483'] ['Q1688722', 'P407', 'Q162064']
ASK WHERE { resource:Q1688722 property:P407 resource:Q162064 . resource:Q1688722 property:P407 resource:Q939483 }
Williams adstratum African Romance
action is_in
entity Williams
action intersection
action find_reverse
entity adstratum
relation language of work or name
action find_reverse
entity African Romance
relation language of work or name
['Williams', 'language of work or name', 'adstratum'] ['Williams', 'language of work or name', 'African Romance']
ASK WHERE { resource:Williams property:language_of_work_or_name resource:African_Romance . resource:Williams property:language_of_work_or_name resource:adstratum }
[]
language
SYSTEM
NO
(Q1688722,P407,Q939483) (Q1688722,P407,Q162064)
action is_in
entity Q1688722
action intersection
action find_reverse
entity Q939483
relation P407
action find_reverse
entity Q162064
relation P407
[ANSWER]
['Q1688722', 'P407', 'Q939483'] ['Q1688722', 'P407', 'Q162064']
ASK WHERE { resource:Q1688722 property:P407 resource:Q162064 . resource:Q1688722 property:P407 resource:Q939483 }
No
action is_in
entity Williams
action intersection
action find_reverse
entity adstratum
relation language of work or name
action find_reverse
entity African Romance
relation language of work or name
['Williams', 'language of work or name', 'adstratum'] ['Williams', 'language of work or name', 'African Romance']
ASK WHERE { resource:Williams property:language_of_work_or_name resource:African_Romance . resource:Williams property:language_of_work_or_name resource:adstratum }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1632749 Q30
P6
Q502895
USER
Which people are United States of America or Muñana the head of goverment of ?
OR((Q30,P6,c(Q502895)), (Q1632749,P6,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q1632749
relation P6
type Q502895
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q1632749', 'P6', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q30 property:P6 ?h } UNION { resource:Q1632749 property:P6 ?h } } . ?h rdf:type ontology:Q502895 }
Muñana United States of America
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity Muñana
relation head of government
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['Muñana', 'head of government', {'concept': 'common name'}]]}
SELECT DISTINCT ?h WHERE { { { resource:United_States_of_America property:head_of_government ?h } UNION { resource:Muñana property:head_of_government ?h } } . ?h rdf:type ontology:common_name }
[]
common name
Q9588 Q9582 Q35286 Q11869 Q11806 Q11816 Q76 Q34597 Q11613 Q11891
SYSTEM
Some of them are Richard Nixon, Gerald Ford, Warren G. Harding, William Henry Harrison, John Adams, John Quincy Adams, Barack Obama, James A. Garfield, Harry S. Truman, James K. Polk
Q35171 Q11815 Q11816 Q11817 Q9588 Q11812 Q12306 Q91 Q12325 Q33866 Q35648 Q35498 Q9582 Q11869 Q207 Q11813 Q35236 Q23685 Q9696 Q22686 Q34597 Q36023 Q11881 Q9916 Q12312 Q14029618 Q11806 Q35286 Q9640 Q35686 Q11820 Q35678 Q35041 Q34296 Q76 Q8612 Q34836 Q23505 Q23 Q1124 Q11613 Q11896 Q8007 Q9960 Q11891
OR((Q30,P6,c(Q502895)), (Q1632749,P6,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q1632749
relation P6
type Q502895
Are United States of America or Muñana the head of goverment of the [ANSWERS]
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q1632749', 'P6', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q30 property:P6 ?h } UNION { resource:Q1632749 property:P6 ?h } } . ?h rdf:type ontology:Q502895 }
Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Richard Nixon Thomas Jefferson Millard Fillmore Abraham Lincoln James Buchanan Theodore Roosevelt William Howard Taft Chester A. Arthur Gerald Ford William Henry Harrison George W. Bush James Madison Herbert Hoover Jimmy Carter John F. Kennedy Donald Trump James A. Garfield Calvin Coolidge John Tyler Dwight D. Eisenhower Franklin Pierce Luis Pérez Pérez John Adams Warren G. Harding Lyndon B. Johnson Rutherford B. Hayes Martin Van Buren Benjamin Harrison William McKinley Woodrow Wilson Barack Obama Andrew Johnson Ulysses S. Grant George H. W. Bush George Washington Bill Clinton Harry S. Truman Zachary Taylor Franklin Delano Roosevelt Ronald Reagan James K. Polk
Are United States of America or Muñana the head of goverment of the Richard Nixon, Gerald Ford, Warren G. Harding, William Henry Harrison, John Adams, John Quincy Adams, Barack Obama, James A. Garfield, Harry S. Truman and James K. Polk
Richard Nixon Gerald Ford Warren G. Harding William Henry Harrison John Adams John Quincy Adams Barack Obama James A. Garfield Harry S. Truman James K. Polk
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity Muñana
relation head of government
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['Muñana', 'head of government', {'concept': 'common name'}]]}
SELECT DISTINCT ?h WHERE { { { resource:United_States_of_America property:head_of_government ?h } UNION { resource:Muñana property:head_of_government ?h } } . ?h rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q681531
P6
Q15617994
USER
Do Kottingbrunn have a government lead by those people ?
(Q681531,P6,Q9588) (Q681531,P6,Q9582) (Q681531,P6,Q35286) (Q681531,P6,Q11869) (Q681531,P6,Q11806) (Q681531,P6,Q11816) (Q681531,P6,Q76) (Q681531,P6,Q34597) (Q681531,P6,Q11613) (Q681531,P6,Q11891)
action is_in
entity prev_answer
action find
entity Q681531
relation P6
['Q681531', 'P6', 'Q9588'] ['Q681531', 'P6', 'Q9582'] ['Q681531', 'P6', 'Q35286'] ['Q681531', 'P6', 'Q11869'] ['Q681531', 'P6', 'Q11806'] ['Q681531', 'P6', 'Q11816'] ['Q681531', 'P6', 'Q76'] ['Q681531', 'P6', 'Q34597'] ['Q681531', 'P6', 'Q11613'] ['Q681531', 'P6', 'Q11891']
ASK WHERE { resource:Q681531 property:P6 ?l . VALUES ( ?l ) { ( resource:Q35171 ) ( resource:Q11815 ) ( resource:Q11816 ) } }
Kottingbrunn
action is_in
entity prev_answer
action find
entity Kottingbrunn
relation head of government
['Kottingbrunn', 'head of government', 'Richard Nixon'] ['Kottingbrunn', 'head of government', 'Gerald Ford'] ['Kottingbrunn', 'head of government', 'Warren G. Harding'] ['Kottingbrunn', 'head of government', 'William Henry Harrison'] ['Kottingbrunn', 'head of government', 'John Adams'] ['Kottingbrunn', 'head of government', 'John Quincy Adams'] ['Kottingbrunn', 'head of government', 'Barack Obama'] ['Kottingbrunn', 'head of government', 'James A. Garfield'] ['Kottingbrunn', 'head of government', 'Harry S. Truman'] ['Kottingbrunn', 'head of government', 'James K. Polk']
ASK WHERE { resource:Kottingbrunn property:head_of_government ?l . VALUES ( ?l ) { ( resource:Grover_Cleveland ) ( resource:James_Monroe ) ( resource:John_Quincy_Adams ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q681531,P6,Q9588) (Q681531,P6,Q9582) (Q681531,P6,Q35286) (Q681531,P6,Q11869) (Q681531,P6,Q11806) (Q681531,P6,Q11816) (Q681531,P6,Q76) (Q681531,P6,Q34597) (Q681531,P6,Q11613) (Q681531,P6,Q11891)
action is_in
entity prev_answer
action find
entity Q681531
relation P6
[ANSWER]
['Q681531', 'P6', 'Q9588'] ['Q681531', 'P6', 'Q9582'] ['Q681531', 'P6', 'Q35286'] ['Q681531', 'P6', 'Q11869'] ['Q681531', 'P6', 'Q11806'] ['Q681531', 'P6', 'Q11816'] ['Q681531', 'P6', 'Q76'] ['Q681531', 'P6', 'Q34597'] ['Q681531', 'P6', 'Q11613'] ['Q681531', 'P6', 'Q11891']
ASK WHERE { resource:Q681531 property:P6 ?l . VALUES ( ?l ) { ( resource:Q35171 ) ( resource:Q11815 ) ( resource:Q11816 ) } }
No
action is_in
entity prev_answer
action find
entity Kottingbrunn
relation head of government
['Kottingbrunn', 'head of government', 'Richard Nixon'] ['Kottingbrunn', 'head of government', 'Gerald Ford'] ['Kottingbrunn', 'head of government', 'Warren G. Harding'] ['Kottingbrunn', 'head of government', 'William Henry Harrison'] ['Kottingbrunn', 'head of government', 'John Adams'] ['Kottingbrunn', 'head of government', 'John Quincy Adams'] ['Kottingbrunn', 'head of government', 'Barack Obama'] ['Kottingbrunn', 'head of government', 'James A. Garfield'] ['Kottingbrunn', 'head of government', 'Harry S. Truman'] ['Kottingbrunn', 'head of government', 'James K. Polk']
ASK WHERE { resource:Kottingbrunn property:head_of_government ?l . VALUES ( ?l ) { ( resource:Grover_Cleveland ) ( resource:James_Monroe ) ( resource:John_Quincy_Adams ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q76
P138
Q16521
USER
Which taxons have Barack Obama as their namesake ?
(c(Q16521),P138,Q76)
action filter_type
action find_reverse
entity Q76
relation P138
type Q16521
[{'concept': 'Q16521'}, 'P138', 'Q76']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q16521 . ?m property:P138 resource:Q76 }
Barack Obama
action filter_type
action find_reverse
entity Barack Obama
relation named after
type taxon
[{'concept': 'taxon'}, 'named after', 'Barack Obama']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:taxon . ?m property:named_after resource:Barack_Obama }
[]
taxon
Q26857917 Q1390728 Q983134
SYSTEM
Baracktrema, Aptostichus barackobamai, Caloplaca obamae
Q26857917 Q1390728 Q983134 Q333408 Q26834330
(c(Q16521),P138,Q76)
action filter_type
action find_reverse
entity Q76
relation P138
type Q16521
[ANSWERS] have Barack Obama as their namesake
[{'concept': 'Q16521'}, 'P138', 'Q76']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q16521 . ?m property:P138 resource:Q76 }
Baracktrema Aptostichus barackobamai Caloplaca obamae Etheostoma obama Baracktrema obamai
Baracktrema, Aptostichus barackobamai and Caloplaca obamae have Barack Obama as their namesake
Baracktrema Aptostichus barackobamai Caloplaca obamae
action filter_type
action find_reverse
entity Barack Obama
relation named after
type taxon
[{'concept': 'taxon'}, 'named after', 'Barack Obama']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:taxon . ?m property:named_after resource:Barack_Obama }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q26857917 Q1390728 Q983134
P138
Q502895
USER
Which people are the origin of Baracktrema, Aptostichus barackobamai and Caloplaca obamae ?
(Q26857917,P138,c(Q502895)) (Q1390728,P138,c(Q502895)) (Q983134,P138,c(Q502895))
action union
action filter_type
action find
entity Q26857917
relation P138
type Q502895
action filter_type
action find
entity Q1390728
relation P138
type Q502895
action filter_type
action find
entity Q983134
relation P138
type Q502895
['Q26857917', 'P138', {'concept': 'Q502895'}] ['Q1390728', 'P138', {'concept': 'Q502895'}] ['Q983134', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { { resource:Q1390728 property:P138 ?g . ?g rdf:type ontology:Q502895 } UNION { resource:Q26857917 property:P138 ?g . ?g rdf:type ontology:Q502895 } }
Baracktrema Aptostichus barackobamai Caloplaca obamae
action union
action filter_type
action find
entity Baracktrema
relation named after
type common name
action filter_type
action find
entity Aptostichus barackobamai
relation named after
type common name
action filter_type
action find
entity Caloplaca obamae
relation named after
type common name
['Baracktrema', 'named after', {'concept': 'common name'}] ['Aptostichus barackobamai', 'named after', {'concept': 'common name'}] ['Caloplaca obamae', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { { resource:Aptostichus_barackobamai property:named_after ?g . ?g rdf:type ontology:common_name } UNION { resource:Baracktrema property:named_after ?g . ?g rdf:type ontology:common_name } }
[]
common name
Q76 Q76 Q76
SYSTEM
Barack Obama
Q76 Q76 Q76
(Q26857917,P138,c(Q502895)) (Q1390728,P138,c(Q502895)) (Q983134,P138,c(Q502895))
action union
action filter_type
action find
entity Q26857917
relation P138
type Q502895
action filter_type
action find
entity Q1390728
relation P138
type Q502895
action filter_type
action find
entity Q983134
relation P138
type Q502895
[ANSWER], [ANSWER] and [ANSWER] are the origin of Baracktrema, Aptostichus barackobamai and Caloplaca obamae
['Q26857917', 'P138', {'concept': 'Q502895'}] ['Q1390728', 'P138', {'concept': 'Q502895'}] ['Q983134', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { { resource:Q1390728 property:P138 ?g . ?g rdf:type ontology:Q502895 } UNION { resource:Q26857917 property:P138 ?g . ?g rdf:type ontology:Q502895 } }
Barack Obama Barack Obama Barack Obama
Barack Obama, Barack Obama and Barack Obama are the origin of Baracktrema, Aptostichus barackobamai and Caloplaca obamae
Barack Obama Barack Obama Barack Obama
action union
action filter_type
action find
entity Baracktrema
relation named after
type common name
action filter_type
action find
entity Aptostichus barackobamai
relation named after
type common name
action filter_type
action find
entity Caloplaca obamae
relation named after
type common name
['Baracktrema', 'named after', {'concept': 'common name'}] ['Aptostichus barackobamai', 'named after', {'concept': 'common name'}] ['Caloplaca obamae', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { { resource:Aptostichus_barackobamai property:named_after ?g . ?g rdf:type ontology:common_name } UNION { resource:Baracktrema property:named_after ?g . ?g rdf:type ontology:common_name } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q76
P26
Q502895
USER
Which person is the spouse of that one ?
(Q76,P26,c(Q502895)) (Q76,P26,c(Q502895)) (Q76,P26,c(Q502895))
action filter_type
action find
entity Q76
relation P26
type Q502895
['Q76', 'P26', {'concept': 'Q502895'}] ['Q76', 'P26', {'concept': 'Q502895'}] ['Q76', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q76 property:P26 ?r . ?r rdf:type ontology:Q502895 }
Barack Obama
action filter_type
action find
entity Barack Obama
relation spouse
type common name
['Barack Obama', 'spouse', {'concept': 'common name'}] ['Barack Obama', 'spouse', {'concept': 'common name'}] ['Barack Obama', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Barack_Obama property:spouse ?r . ?r rdf:type ontology:common_name }
[]
common name
Q13133
SYSTEM
Michelle Obama
Q13133
(Q76,P26,c(Q502895)) (Q76,P26,c(Q502895)) (Q76,P26,c(Q502895))
action filter_type
action find
entity Q76
relation P26
type Q502895
[ANSWER] is the spouse of that one
['Q76', 'P26', {'concept': 'Q502895'}] ['Q76', 'P26', {'concept': 'Q502895'}] ['Q76', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q76 property:P26 ?r . ?r rdf:type ontology:Q502895 }
Michelle Obama
Michelle Obama is the spouse of that one
Michelle Obama
action filter_type
action find
entity Barack Obama
relation spouse
type common name
['Barack Obama', 'spouse', {'concept': 'common name'}] ['Barack Obama', 'spouse', {'concept': 'common name'}] ['Barack Obama', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Barack_Obama property:spouse ?r . ?r rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q13133 Q5376661
P112
Q43229
USER
Was Endurance International Group founded by that person ?
(Q5376661,P112,Q13133)
action is_in
entity Q5376661
action find
entity Q13133
relation P112
['Q5376661', 'P112', 'Q13133']
ASK WHERE { resource:Q13133 property:P112 resource:Q5376661 }
Michelle Obama Endurance International Group
action is_in
entity Endurance International Group
action find
entity Michelle Obama
relation founder
['Endurance International Group', 'founder', 'Michelle Obama']
ASK WHERE { resource:Michelle_Obama property:founder resource:Endurance_International_Group }
[]
organization
SYSTEM
NO
(Q5376661,P112,Q13133)
action is_in
entity Q5376661
action find
entity Q13133
relation P112
[ANSWER]
['Q5376661', 'P112', 'Q13133']
ASK WHERE { resource:Q13133 property:P112 resource:Q5376661 }
No
action is_in
entity Endurance International Group
action find
entity Michelle Obama
relation founder
['Endurance International Group', 'founder', 'Michelle Obama']
ASK WHERE { resource:Michelle_Obama property:founder resource:Endurance_International_Group }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q3623688
P1303
Q34379 Q502895
USER
How many musical instruments are played by approximately the same number of people as Paraguayan harp ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q3623688
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?r ) AS ?h ) WHERE { ?r property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?r rdf:type ontology:Q502895 } GROUP BY ?v } . FILTER ( ?h = ?z ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { resource:Q3623688 property:P1303 ?e . ?e rdf:type ontology:Q34379 } } }
Paraguayan harp
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Paraguayan harp
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?r ) AS ?h ) WHERE { ?r property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?r rdf:type ontology:common_name } GROUP BY ?v } . FILTER ( ?h = ?z ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { resource:Paraguayan_harp property:instrument ?e . ?e rdf:type ontology:musical_instrument } } }
[]
musical instrument common name
SYSTEM
60
Q80284 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 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 count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q3623688
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?r ) AS ?h ) WHERE { ?r property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?r rdf:type ontology:Q502895 } GROUP BY ?v } . FILTER ( ?h = ?z ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { resource:Q3623688 property:P1303 ?e . ?e rdf:type ontology:Q34379 } } }
viola lyre acoustic bass guitar Body percussion double bass 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 cello 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
60
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Paraguayan harp
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?r ) AS ?h ) WHERE { ?r property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?r rdf:type ontology:common_name } GROUP BY ?v } . FILTER ( ?h = ?z ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { resource:Paraguayan_harp property:instrument ?e . ?e rdf:type ontology:musical_instrument } } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q17669409 Q1688722
P407
Q34770
USER
Which languages are the languages of work for Williams and Barry Bonds guilty of obstruction ?
AND((Q1688722,P407,c(Q34770)), (Q17669409,P407,c(Q34770)))
action filter_type
action intersection
action find
entity Q1688722
relation P407
action find
entity Q17669409
relation P407
type Q34770
{'AND': [['Q1688722', 'P407', {'concept': 'Q34770'}], ['Q17669409', 'P407', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?a WHERE { resource:Q1688722 property:P407 ?a . resource:Q17669409 property:P407 ?a . ?a rdf:type ontology:Q34770 }
Barry Bonds guilty of obstruction Williams
action filter_type
action intersection
action find
entity Williams
relation language of work or name
action find
entity Barry Bonds guilty of obstruction
relation language of work or name
type language
{'AND': [['Williams', 'language of work or name', {'concept': 'language'}], ['Barry Bonds guilty of obstruction', 'language of work or name', {'concept': 'language'}]]}
SELECT DISTINCT ?a WHERE { resource:Williams property:language_of_work_or_name ?a . resource:Barry_Bonds_guilty_of_obstruction property:language_of_work_or_name ?a . ?a rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
AND((Q1688722,P407,c(Q34770)), (Q17669409,P407,c(Q34770)))
action filter_type
action intersection
action find
entity Q1688722
relation P407
action find
entity Q17669409
relation P407
type Q34770
[ANSWER] is the languages of work for Williams and Barry Bonds guilty of obstruction
{'AND': [['Q1688722', 'P407', {'concept': 'Q34770'}], ['Q17669409', 'P407', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?a WHERE { resource:Q1688722 property:P407 ?a . resource:Q17669409 property:P407 ?a . ?a rdf:type ontology:Q34770 }
English
English is the languages of work for Williams and Barry Bonds guilty of obstruction
English
action filter_type
action intersection
action find
entity Williams
relation language of work or name
action find
entity Barry Bonds guilty of obstruction
relation language of work or name
type language
{'AND': [['Williams', 'language of work or name', {'concept': 'language'}], ['Barry Bonds guilty of obstruction', 'language of work or name', {'concept': 'language'}]]}
SELECT DISTINCT ?a WHERE { resource:Williams property:language_of_work_or_name ?a . resource:Barry_Bonds_guilty_of_obstruction property:language_of_work_or_name ?a . ?a rdf:type ontology:language }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1860 Q5329170 Q2481447
P361
Q5962346
USER
Is that language a part of Anglo-Frisian languages and British A-class submarine ?
(Q1860,P361,Q5329170) (Q1860,P361,Q2481447)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q5329170
relation P361
action find_reverse
entity Q2481447
relation P361
['Q1860', 'P361', 'Q5329170'] ['Q1860', 'P361', 'Q2481447']
ASK WHERE { resource:Q1860 property:P361 resource:Q5329170 . resource:Q1860 property:P361 resource:Q2481447 }
English Anglo-Frisian languages British A-class submarine
action is_in
entity English
action intersection
action find_reverse
entity Anglo-Frisian languages
relation part of
action find_reverse
entity British A-class submarine
relation part of
['English', 'part of', 'Anglo-Frisian languages'] ['English', 'part of', 'British A-class submarine']
ASK WHERE { resource:English property:part_of resource:Anglo-Frisian_languages . resource:English property:part_of resource:British_A-class_submarine }
[]
classification scheme
SYSTEM
YES and NO respectively
(Q1860,P361,Q5329170) (Q1860,P361,Q2481447)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q5329170
relation P361
action find_reverse
entity Q2481447
relation P361
[ANSWER]
['Q1860', 'P361', 'Q5329170'] ['Q1860', 'P361', 'Q2481447']
ASK WHERE { resource:Q1860 property:P361 resource:Q5329170 . resource:Q1860 property:P361 resource:Q2481447 }
YES and NO respectively
action is_in
entity English
action intersection
action find_reverse
entity Anglo-Frisian languages
relation part of
action find_reverse
entity British A-class submarine
relation part of
['English', 'part of', 'Anglo-Frisian languages'] ['English', 'part of', 'British A-class submarine']
ASK WHERE { resource:English property:part_of resource:Anglo-Frisian_languages . resource:English property:part_of resource:British_A-class_submarine }
[]