Simple Question (Direct)
Simple Question
Q3266114
P54
Q12973014
USER
Which sports teams are Ludovic Courtade a member of ?
(Q3266114,P54,c(Q12973014))
action filter_type
action find
entity Q3266114
relation P54
type Q12973014
['Q3266114', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?r WHERE { resource:Q3266114 property:P54 ?r . ?r rdf:type ontology:Q12973014 }
Ludovic Courtade
action filter_type
action find
entity Ludovic Courtade
relation member of sports team
type sports team
['Ludovic Courtade', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?r WHERE { resource:Ludovic_Courtade property:member_of_sports_team ?r . ?r rdf:type ontology:sports_team }
[]
sports team
Q634843 Q1319827 Q779116
SYSTEM
Tarbes Pyrénées Rugby, US Dax, FC Auch Gers
Q1782908 Q634843 Q3550516 Q1319827 Q779116
(Q3266114,P54,c(Q12973014))
action filter_type
action find
entity Q3266114
relation P54
type Q12973014
[ANSWERS] are Ludovic Courtade a member of
['Q3266114', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?r WHERE { resource:Q3266114 property:P54 ?r . ?r rdf:type ontology:Q12973014 }
Stade Montois Tarbes Pyrénées Rugby Union Sportive Tyrosse Rugby Côte Sud US Dax FC Auch Gers
Tarbes Pyrénées Rugby, US Dax and FC Auch Gers are Ludovic Courtade a member of
Tarbes Pyrénées Rugby US Dax FC Auch Gers
action filter_type
action find
entity Ludovic Courtade
relation member of sports team
type sports team
['Ludovic Courtade', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?r WHERE { resource:Ludovic_Courtade property:member_of_sports_team ?r . ?r rdf:type ontology:sports_team }
[]
Clarification
Simple Question|Single Entity|Indirect
Q779116
P17
Q15617994
USER
Which administrative territory is that sports team situated in ?
(Q779116,P17,c(Q15617994))
action filter_type
action find
entity Q779116
relation P17
type Q15617994
['Q779116', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q779116 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
FC Auch Gers
action filter_type
action find
entity FC Auch Gers
relation country
type designation for an administrative territorial entity
['FC Auch Gers', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:FC_Auch_Gers property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q1319827
SYSTEM
Did you mean US Dax ?
Q634843 Q1319827 Q779116
(Q634843,P17,c(Q15617994)) (Q1319827,P17,c(Q15617994)) (Q779116,P17,c(Q15617994))
[ANSWER]
['Q634843', 'P17', {'concept': 'Q15617994'}] ['Q1319827', 'P17', {'concept': 'Q15617994'}] ['Q779116', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q779116 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
Tarbes Pyrénées Rugby US Dax FC Auch Gers
Did you mean US Dax ?
US Dax
['Tarbes Pyrénées Rugby', 'country', {'concept': 'designation for an administrative territorial entity'}] ['US Dax', 'country', {'concept': 'designation for an administrative territorial entity'}] ['FC Auch Gers', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:FC_Auch_Gers property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant FC Auch Gers. Could you tell me the answer for that?
(Q779116,P17,c(Q15617994))
Q779116
['Q779116', 'P17', {'concept': 'Q15617994'}]
['FC Auch Gers', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q142
SYSTEM
France
Q142
(Q779116,P17,c(Q15617994))
action filter_type
action find
entity Q779116
relation P17
type Q15617994
That sports team is situated in [ANSWER]
['Q779116', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q779116 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
France
That sports team is situated in France
France
action filter_type
action find
entity FC Auch Gers
relation country
type designation for an administrative territorial entity
['FC Auch Gers', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:FC_Auch_Gers property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P941
Q15617994 Q3895768
USER
Which administrative territories inspired lesser number of fictional locations than that administrative territory ?
(c(Q3895768),P941,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P941
type Q15617994
type Q3895768
action count
action filter_type
action find_reverse
entity Q142
relation P941
type Q3895768
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u property:P941 resource:Q142 . ?u rdf:type ontology:Q3895768 } } . FILTER ( ?w < ?r ) . { SELECT DISTINCT ?l ( COUNT ( ?x ) AS ?w ) WHERE { ?x property:P941 ?l . ?l rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q3895768 } GROUP BY ?l } }
action less
action find_reverse_tuple_counts
relation inspired by
type designation for an administrative territorial entity
type fictional location
action count
action filter_type
action find_reverse
entity France
relation inspired by
type fictional location
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u property:inspired_by resource:France . ?u rdf:type ontology:fictional_location } } . FILTER ( ?w < ?r ) . { SELECT DISTINCT ?l ( COUNT ( ?x ) AS ?w ) WHERE { ?x property:inspired_by ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:fictional_location } GROUP BY ?l } }
[]
designation for an administrative territorial entity fictional location
Q55416
SYSTEM
Chioggia
Q55416
(c(Q3895768),P941,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P941
type Q15617994
type Q3895768
action count
action filter_type
action find_reverse
entity Q142
relation P941
type Q3895768
[ANSWER] inspired lesser number of fictional locations than that administrative territory
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u property:P941 resource:Q142 . ?u rdf:type ontology:Q3895768 } } . FILTER ( ?w < ?r ) . { SELECT DISTINCT ?l ( COUNT ( ?x ) AS ?w ) WHERE { ?x property:P941 ?l . ?l rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q3895768 } GROUP BY ?l } }
Chioggia
Chioggia inspired lesser number of fictional locations than that administrative territory
Chioggia
action less
action find_reverse_tuple_counts
relation inspired by
type designation for an administrative territorial entity
type fictional location
action count
action filter_type
action find_reverse
entity France
relation inspired by
type fictional location
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u property:inspired_by resource:France . ?u rdf:type ontology:fictional_location } } . FILTER ( ?w < ?r ) . { SELECT DISTINCT ?l ( COUNT ( ?x ) AS ?w ) WHERE { ?x property:inspired_by ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:fictional_location } GROUP BY ?l } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P190
Q20667921 Q56061
USER
How many french administrative divisions and administrative territories are twin towns of that administrative territory ?
(Q55416,P190,c(Q20667921)) (Q55416,P190,c(Q56061)) (Q55416,P190,c(Q20667921)) (Q55416,P190,c(Q56061))
action count
action union
action filter_type
action find
entity Q55416
relation P190
type Q20667921
action filter_type
action find
entity Q55416
relation P190
type Q56061
['Q55416', 'P190', {'concept': 'Q20667921'}] ['Q55416', 'P190', {'concept': 'Q56061'}] ['Q55416', 'P190', {'concept': 'Q20667921'}] ['Q55416', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { resource:Q55416 property:P190 ?t . ?t rdf:type ontology:Q20667921 } UNION { resource:Q55416 property:P190 ?t . ?t rdf:type ontology:Q56061 } }
action count
action union
action filter_type
action find
entity Chioggia
relation sister city
type type of french administrative division
action filter_type
action find
entity Chioggia
relation sister city
type administrative territorial entity
['Chioggia', 'sister city', {'concept': 'type of french administrative division'}] ['Chioggia', 'sister city', {'concept': 'administrative territorial entity'}] ['Chioggia', 'sister city', {'concept': 'type of french administrative division'}] ['Chioggia', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { resource:Chioggia property:sister_city ?t . ?t rdf:type ontology:type_of_french_administrative_division } UNION { resource:Chioggia property:sister_city ?t . ?t rdf:type ontology:administrative_territorial_entity } }
[]
type of french administrative division administrative territorial entity
SYSTEM
1 french administrative divisions and 1 administrative territories
Q192980 Q1813
(Q55416,P190,c(Q20667921)) (Q55416,P190,c(Q56061)) (Q55416,P190,c(Q20667921)) (Q55416,P190,c(Q56061))
action count
action union
action filter_type
action find
entity Q55416
relation P190
type Q20667921
action filter_type
action find
entity Q55416
relation P190
type Q56061
[ANSWER]
['Q55416', 'P190', {'concept': 'Q20667921'}] ['Q55416', 'P190', {'concept': 'Q56061'}] ['Q55416', 'P190', {'concept': 'Q20667921'}] ['Q55416', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { resource:Q55416 property:P190 ?t . ?t rdf:type ontology:Q20667921 } UNION { resource:Q55416 property:P190 ?t . ?t rdf:type ontology:Q56061 } }
Lamia Saint-Tropez
1 french administrative divisions and 1 administrative territories
action count
action union
action filter_type
action find
entity Chioggia
relation sister city
type type of french administrative division
action filter_type
action find
entity Chioggia
relation sister city
type administrative territorial entity
['Chioggia', 'sister city', {'concept': 'type of french administrative division'}] ['Chioggia', 'sister city', {'concept': 'administrative territorial entity'}] ['Chioggia', 'sister city', {'concept': 'type of french administrative division'}] ['Chioggia', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { resource:Chioggia property:sister_city ?t . ?t rdf:type ontology:type_of_french_administrative_division } UNION { resource:Chioggia property:sister_city ?t . ?t rdf:type ontology:administrative_territorial_entity } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q55416
P190
Q56061 Q20667921
USER
How many administrative territories or french administrative divisions are twin cities of Chioggia ?
(Q55416,P190,c(Q56061)) (Q55416,P190,c(Q20667921))
action count
action union
action filter_type
action find
entity Q55416
relation P190
type Q56061
action filter_type
action find
entity Q55416
relation P190
type Q20667921
['Q55416', 'P190', {'concept': 'Q56061'}] ['Q55416', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { resource:Q55416 property:P190 ?n . ?n rdf:type ontology:Q56061 } UNION { ?n rdf:type ontology:Q20667921 . resource:Q55416 property:P190 ?n } }
Chioggia
action count
action union
action filter_type
action find
entity Chioggia
relation sister city
type administrative territorial entity
action filter_type
action find
entity Chioggia
relation sister city
type type of french administrative division
['Chioggia', 'sister city', {'concept': 'administrative territorial entity'}] ['Chioggia', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { resource:Chioggia property:sister_city ?n . ?n rdf:type ontology:administrative_territorial_entity } UNION { ?n rdf:type ontology:type_of_french_administrative_division . resource:Chioggia property:sister_city ?n } }
[]
administrative territorial entity type of french administrative division
SYSTEM
2
Q192980 Q1813
(Q55416,P190,c(Q56061)) (Q55416,P190,c(Q20667921))
action count
action union
action filter_type
action find
entity Q55416
relation P190
type Q56061
action filter_type
action find
entity Q55416
relation P190
type Q20667921
[ANSWER]
['Q55416', 'P190', {'concept': 'Q56061'}] ['Q55416', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { resource:Q55416 property:P190 ?n . ?n rdf:type ontology:Q56061 } UNION { ?n rdf:type ontology:Q20667921 . resource:Q55416 property:P190 ?n } }
Lamia Saint-Tropez
2
action count
action union
action filter_type
action find
entity Chioggia
relation sister city
type administrative territorial entity
action filter_type
action find
entity Chioggia
relation sister city
type type of french administrative division
['Chioggia', 'sister city', {'concept': 'administrative territorial entity'}] ['Chioggia', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { resource:Chioggia property:sister_city ?n . ?n rdf:type ontology:administrative_territorial_entity } UNION { ?n rdf:type ontology:type_of_french_administrative_division . resource:Chioggia property:sister_city ?n } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P30
Q2221906
USER
Which geographic locations are France a part of ?
(Q142,P30,c(Q2221906))
action filter_type
action find
entity Q142
relation P30
type Q2221906
['Q142', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q2221906 . resource:Q142 property:P30 ?q }
France
action filter_type
action find
entity France
relation continent
type geographic location
['France', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:geographic_location . resource:France property:continent ?q }
[]
geographic location
Q51 Q15 Q46
SYSTEM
Antarctica, Africa, Europe
Q46 Q15 Q538 Q828 Q51
(Q142,P30,c(Q2221906))
action filter_type
action find
entity Q142
relation P30
type Q2221906
[ANSWERS]
['Q142', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q2221906 . resource:Q142 property:P30 ?q }
Europe Africa Oceania Americas Antarctica
Which geographic locations are France a part of
Antarctica Africa Europe
action filter_type
action find
entity France
relation continent
type geographic location
['France', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:geographic_location . resource:France property:continent ?q }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P85
Q571
USER
What is the national anthem of France ?
(Q142,P85,c(Q571))
action filter_type
action find
entity Q142
relation P85
type Q571
['Q142', 'P85', {'concept': 'Q571'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q571 . resource:Q142 property:P85 ?b }
France
action filter_type
action find
entity France
relation anthem
type book
['France', 'anthem', {'concept': 'book'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:book . resource:France property:anthem ?b }
[]
book
Q41180
SYSTEM
La Marseillaise
Q41180
(Q142,P85,c(Q571))
action filter_type
action find
entity Q142
relation P85
type Q571
The national anthem of France is [ANSWER]
['Q142', 'P85', {'concept': 'Q571'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q571 . resource:Q142 property:P85 ?b }
La Marseillaise
The national anthem of France is La Marseillaise
La Marseillaise
action filter_type
action find
entity France
relation anthem
type book
['France', 'anthem', {'concept': 'book'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:book . resource:France property:anthem ?b }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q41180
P800
Q502895
USER
Who has that book as their notable work ?
(c(Q502895),P800,Q41180)
action filter_type
action find_reverse
entity Q41180
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q41180']
SELECT DISTINCT ?g WHERE { ?g property:P800 resource:Q41180 . ?g rdf:type ontology:Q502895 }
La Marseillaise
action filter_type
action find_reverse
entity La Marseillaise
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'La Marseillaise']
SELECT DISTINCT ?g WHERE { ?g property:notable_work resource:La_Marseillaise . ?g rdf:type ontology:common_name }
[]
common name
Q207660
SYSTEM
Claude Joseph Rouget de Lisle
Q207660
(c(Q502895),P800,Q41180)
action filter_type
action find_reverse
entity Q41180
relation P800
type Q502895
[ANSWER] has that book as their notable work
[{'concept': 'Q502895'}, 'P800', 'Q41180']
SELECT DISTINCT ?g WHERE { ?g property:P800 resource:Q41180 . ?g rdf:type ontology:Q502895 }
Claude Joseph Rouget de Lisle
Claude Joseph Rouget de Lisle has that book as their notable work
Claude Joseph Rouget de Lisle
action filter_type
action find_reverse
entity La Marseillaise
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'La Marseillaise']
SELECT DISTINCT ?g WHERE { ?g property:notable_work resource:La_Marseillaise . ?g rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q41180
P85
Q161243
USER
How many dependent territories have La Marseillaise as their anthem ?
(c(Q161243),P85,Q41180)
action count
action filter_type
action find_reverse
entity Q41180
relation P85
type Q161243
[{'concept': 'Q161243'}, 'P85', 'Q41180']
SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { ?t property:P85 resource:Q41180 . ?t rdf:type ontology:Q161243 }
La Marseillaise
action count
action filter_type
action find_reverse
entity La Marseillaise
relation anthem
type dependent territory
[{'concept': 'dependent territory'}, 'anthem', 'La Marseillaise']
SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { ?t property:anthem resource:La_Marseillaise . ?t rdf:type ontology:dependent_territory }
[]
dependent territory
SYSTEM
7
Q126125 Q35555 Q30971 Q5501708 Q907234 Q797433 Q179023
(c(Q161243),P85,Q41180)
action count
action filter_type
action find_reverse
entity Q41180
relation P85
type Q161243
[ANSWER]
[{'concept': 'Q161243'}, 'P85', 'Q41180']
SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { ?t property:P85 resource:Q41180 . ?t rdf:type ontology:Q161243 }
Saint Martin Wallis and Futuna French Polynesia French Chad French protectorate in Morocco French Guinea French colonial empire
7
action count
action filter_type
action find_reverse
entity La Marseillaise
relation anthem
type dependent territory
[{'concept': 'dependent territory'}, 'anthem', 'La Marseillaise']
SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { ?t property:anthem resource:La_Marseillaise . ?t rdf:type ontology:dependent_territory }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q537750
P1303
Q34379 Q502895
USER
Which musical instruments do greater number of people know to play than Djembe ?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q537750
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?x ) WHERE { ?n property:P1303 ?b . ?b rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { resource:Q537750 property:P1303 ?e . ?e rdf:type ontology:Q34379 } } . FILTER ( ?x > ?v ) }
Djembe
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Djembe
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?x ) WHERE { ?n property:instrument ?b . ?b rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { resource:Djembe property:instrument ?e . ?e rdf:type ontology:musical_instrument } } . FILTER ( ?x > ?v ) }
[]
musical instrument common name
Q5994 Q81982 Q80284
SYSTEM
piano, harpsichord, viola
Q80284 Q46185 Q80019 Q2563510 Q5994 Q81982 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q213100 Q626035 Q742180 Q1444 Q220971 Q128309 Q726306 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q537750
relation P1303
type Q34379
[ANSWERS] greater number of people know to play than Djembe
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?x ) WHERE { ?n property:P1303 ?b . ?b rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { resource:Q537750 property:P1303 ?e . ?e rdf:type ontology:Q34379 } } . FILTER ( ?x > ?v ) }
viola bass guitar double bass steel-string acoustic guitar piano harpsichord vibraphone timpani trumpet cello violin harmonium upright piano tabla glockenspiel viola d'amore organ marimba drum kit erhu electronic keyboard drum
Piano, harpsichord and viola greater number of people know to play than Djembe
piano harpsichord viola
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Djembe
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?x ) WHERE { ?n property:instrument ?b . ?b rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { resource:Djembe property:instrument ?e . ?e rdf:type ontology:musical_instrument } } . FILTER ( ?x > ?v ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q742180
P1303
Q34379 Q502895
USER
And how about viola d'amore?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q742180
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?t ) WHERE { ?a property:P1303 ?r . ?r rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) WHERE { resource:Q742180 property:P1303 ?q . ?q rdf:type ontology:Q34379 } } . FILTER ( ?t > ?k ) }
viola d'amore
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity viola d'amore
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?t ) WHERE { ?a property:instrument ?r . ?r rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) WHERE { resource:viola_d'amore property:instrument ?q . ?q rdf:type ontology:musical_instrument } } . FILTER ( ?t > ?k ) }
[]
musical instrument common name
Q5994 Q81982 Q80284
SYSTEM
piano, harpsichord, viola
Q80284 Q46185 Q80019 Q5994 Q81982 Q206987 Q8338 Q8371 Q8355 Q3382191 Q1444 Q128309 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q742180
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?t ) WHERE { ?a property:P1303 ?r . ?r rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) WHERE { resource:Q742180 property:P1303 ?q . ?q rdf:type ontology:Q34379 } } . FILTER ( ?t > ?k ) }
viola bass guitar double bass piano harpsichord vibraphone trumpet cello violin upright piano organ drum kit electronic keyboard drum
piano harpsichord viola
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity viola d'amore
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?t ) WHERE { ?a property:instrument ?r . ?r rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) WHERE { resource:viola_d'amore property:instrument ?q . ?q rdf:type ontology:musical_instrument } } . FILTER ( ?t > ?k ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5994
P61
Q502895
USER
Which person discovered or invented that musical instrument ?
(Q5994,P61,c(Q502895))
action filter_type
action find
entity Q5994
relation P61
type Q502895
['Q5994', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q5994 property:P61 ?u . ?u rdf:type ontology:Q502895 }
piano
action filter_type
action find
entity piano
relation discoverer or inventor
type common name
['piano', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:piano property:discoverer_or_inventor ?u . ?u rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q5994
SYSTEM
Did you mean piano ?
Q5994 Q81982 Q80284
(Q5994,P61,c(Q502895)) (Q81982,P61,c(Q502895)) (Q80284,P61,c(Q502895))
[ANSWER]
['Q5994', 'P61', {'concept': 'Q502895'}] ['Q81982', 'P61', {'concept': 'Q502895'}] ['Q80284', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q5994 property:P61 ?u . ?u rdf:type ontology:Q502895 }
piano harpsichord viola
Did you mean piano ?
piano
['piano', 'discoverer or inventor', {'concept': 'common name'}] ['harpsichord', 'discoverer or inventor', {'concept': 'common name'}] ['viola', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:piano property:discoverer_or_inventor ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q5994,P61,c(Q502895))
['Q5994', 'P61', {'concept': 'Q502895'}]
['piano', 'discoverer or inventor', {'concept': 'common name'}]
[]
Q301597
SYSTEM
Bartolomeo Cristofori
Q301597
(Q5994,P61,c(Q502895))
action filter_type
action find
entity Q5994
relation P61
type Q502895
[ANSWER] discovered or invented that musical instrument
['Q5994', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q5994 property:P61 ?u . ?u rdf:type ontology:Q502895 }
Bartolomeo Cristofori
Bartolomeo Cristofori discovered or invented that musical instrument
Bartolomeo Cristofori
action filter_type
action find
entity piano
relation discoverer or inventor
type common name
['piano', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:piano property:discoverer_or_inventor ?u . ?u rdf:type ontology:common_name }
[]