Simple Question (Direct)
Simple Question
Q6783943
P54
Q1194951
USER
Which national sports team is Masrezwan Masturi a member of ?
(Q6783943,P54,c(Q1194951))
action filter_type
action find
entity Q6783943
relation P54
type Q1194951
['Q6783943', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?d WHERE { resource:Q6783943 property:P54 ?d . ?d rdf:type ontology:Q1194951 }
Masrezwan Masturi
action filter_type
action find
entity Masrezwan Masturi
relation member of sports team
type national sports team
['Masrezwan Masturi', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?d WHERE { resource:Masrezwan_Masturi property:member_of_sports_team ?d . ?d rdf:type ontology:national_sports_team }
[]
national sports team
Q239528
SYSTEM
Singapore national football team
Q239528
(Q6783943,P54,c(Q1194951))
action filter_type
action find
entity Q6783943
relation P54
type Q1194951
[ANSWER] is Masrezwan Masturi a member of
['Q6783943', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?d WHERE { resource:Q6783943 property:P54 ?d . ?d rdf:type ontology:Q1194951 }
Singapore national football team
Singapore national football team is Masrezwan Masturi a member of
Singapore national football team
action filter_type
action find
entity Masrezwan Masturi
relation member of sports team
type national sports team
['Masrezwan Masturi', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?d WHERE { resource:Masrezwan_Masturi property:member_of_sports_team ?d . ?d rdf:type ontology:national_sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q239528
P1532
Q56061
USER
Which administrative territory does that national sports team play for ?
(Q239528,P1532,c(Q56061))
action filter_type
action find
entity Q239528
relation P1532
type Q56061
['Q239528', 'P1532', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . resource:Q239528 property:P1532 ?k }
Singapore national football team
action filter_type
action find
entity Singapore national football team
relation country for sport
type administrative territorial entity
['Singapore national football team', 'country for sport', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . resource:Singapore_national_football_team property:country_for_sport ?k }
[]
administrative territorial entity
Q334
SYSTEM
Singapore
Q334
(Q239528,P1532,c(Q56061))
action filter_type
action find
entity Q239528
relation P1532
type Q56061
That national sports team plays in [ANSWER]
['Q239528', 'P1532', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . resource:Q239528 property:P1532 ?k }
Singapore
That national sports team plays in Singapore
Singapore
action filter_type
action find
entity Singapore national football team
relation country for sport
type administrative territorial entity
['Singapore national football team', 'country for sport', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . resource:Singapore_national_football_team property:country_for_sport ?k }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3181353 Q6783943
P19
Q56061
USER
Which administrative territories are the birthplace of Masrezwan Masturi or John Dobie ?
OR((Q6783943,P19,c(Q56061)), (Q3181353,P19,c(Q56061)))
action filter_type
action union
action find
entity Q6783943
relation P19
action find
entity Q3181353
relation P19
type Q56061
{'OR': [['Q6783943', 'P19', {'concept': 'Q56061'}], ['Q3181353', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q6783943 property:P19 ?q } UNION { resource:Q3181353 property:P19 ?q } } . ?q rdf:type ontology:Q56061 }
John Dobie Masrezwan Masturi
action filter_type
action union
action find
entity Masrezwan Masturi
relation place of birth
action find
entity John Dobie
relation place of birth
type administrative territorial entity
{'OR': [['Masrezwan Masturi', 'place of birth', {'concept': 'administrative territorial entity'}], ['John Dobie', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Masrezwan_Masturi property:place_of_birth ?q } UNION { resource:John_Dobie property:place_of_birth ?q } } . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q334 Q2123
SYSTEM
Singapore, Regina
Q334 Q2123
OR((Q6783943,P19,c(Q56061)), (Q3181353,P19,c(Q56061)))
action filter_type
action union
action find
entity Q6783943
relation P19
action find
entity Q3181353
relation P19
type Q56061
[ANSWERS] are the birthplace of Masrezwan Masturi or John Dobie
{'OR': [['Q6783943', 'P19', {'concept': 'Q56061'}], ['Q3181353', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q6783943 property:P19 ?q } UNION { resource:Q3181353 property:P19 ?q } } . ?q rdf:type ontology:Q56061 }
Singapore Regina
Singapore and Regina are the birthplace of Masrezwan Masturi or John Dobie
Singapore Regina
action filter_type
action union
action find
entity Masrezwan Masturi
relation place of birth
action find
entity John Dobie
relation place of birth
type administrative territorial entity
{'OR': [['Masrezwan Masturi', 'place of birth', {'concept': 'administrative territorial entity'}], ['John Dobie', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Masrezwan_Masturi property:place_of_birth ?q } UNION { resource:John_Dobie property:place_of_birth ?q } } . ?q rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q334
P84
Q699405
USER
Which dwelling has its designs created by that administrative territory ?
(c(Q699405),P84,Q334)
action filter_type
action find_reverse
entity Q334
relation P84
type Q699405
[{'concept': 'Q699405'}, 'P84', 'Q334']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q699405 . ?g property:P84 resource:Q334 }
Singapore
action filter_type
action find_reverse
entity Singapore
relation architect
type dwelling
[{'concept': 'dwelling'}, 'architect', 'Singapore']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:dwelling . ?g property:architect resource:Singapore }
[]
dwelling
Clarification for simple ques.
Q334
SYSTEM
Did you mean Singapore ?
Q334 Q2123
(c(Q699405),P84,Q334) (c(Q699405),P84,Q2123)
[ANSWER]
[{'concept': 'Q699405'}, 'P84', 'Q334'] [{'concept': 'Q699405'}, 'P84', 'Q2123']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q699405 . ?g property:P84 resource:Q334 }
Singapore Regina
Did you mean Singapore ?
Singapore
[{'concept': 'dwelling'}, 'architect', 'Singapore'] [{'concept': 'dwelling'}, 'architect', 'Regina']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:dwelling . ?g property:architect resource:Singapore }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q699405),P84,Q334)
[{'concept': 'Q699405'}, 'P84', 'Q334']
[{'concept': 'dwelling'}, 'architect', 'Singapore']
[]
Q5974717
SYSTEM
ITC Grand Chola Hotel
Q5974717
(c(Q699405),P84,Q334)
action filter_type
action find_reverse
entity Q334
relation P84
type Q699405
[ANSWER] has its designs created by that administrative territory
[{'concept': 'Q699405'}, 'P84', 'Q334']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q699405 . ?g property:P84 resource:Q334 }
ITC Grand Chola Hotel
ITC Grand Chola Hotel has its designs created by that administrative territory
ITC Grand Chola Hotel
action filter_type
action find_reverse
entity Singapore
relation architect
type dwelling
[{'concept': 'dwelling'}, 'architect', 'Singapore']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:dwelling . ?g property:architect resource:Singapore }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q5974717 Q505537
P17
Q15617994
USER
Is ITC Grand Chola Hotel a part of Hummeltal ?
(Q5974717,P17,Q505537)
action is_in
entity Q505537
action find
entity Q5974717
relation P17
['Q5974717', 'P17', 'Q505537']
ASK WHERE { resource:Q5974717 property:P17 resource:Q505537 }
ITC Grand Chola Hotel Hummeltal
action is_in
entity Hummeltal
action find
entity ITC Grand Chola Hotel
relation country
['ITC Grand Chola Hotel', 'country', 'Hummeltal']
ASK WHERE { resource:ITC_Grand_Chola_Hotel property:country resource:Hummeltal }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q5974717,P17,Q505537)
action is_in
entity Q505537
action find
entity Q5974717
relation P17
[ANSWER]
['Q5974717', 'P17', 'Q505537']
ASK WHERE { resource:Q5974717 property:P17 resource:Q505537 }
No
action is_in
entity Hummeltal
action find
entity ITC Grand Chola Hotel
relation country
['ITC Grand Chola Hotel', 'country', 'Hummeltal']
ASK WHERE { resource:ITC_Grand_Chola_Hotel property:country resource:Hummeltal }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q180187
P1923
Q1194951 Q15275719 Q13406554
USER
How many national sports teams took part in lesser number of recurring events and sport competitions than Honduras national football team ?
(c(Q15275719)|c(Q13406554),P1923,c(Q1194951))
action count
action less
action union
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q15275719
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q13406554
action count
action filter_multi_types
action find_reverse
entity Q180187
relation P1923
type Q15275719
type Q13406554
[[{'concept': 'Q15275719'}, {'concept': 'Q13406554'}], 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?t ) WHERE { { ?c rdf:type ontology:Q1194951 . ?o rdf:type ontology:Q15275719 . ?o property:P1923 ?c } UNION { ?c rdf:type ontology:Q1194951 . ?o rdf:type ontology:Q13406554 . ?o property:P1923 ?c } } GROUP BY ?c } . FILTER ( ?t < ?m ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { { { ?x rdf:type ontology:Q15275719 } UNION { ?x rdf:type ontology:Q13406554 } } . ?x property:P1923 resource:Q180187 } } }
Honduras national football team
action count
action less
action union
action find_reverse_tuple_counts
relation participating teams
type national sports team
type recurring event
action find_reverse_tuple_counts
relation participating teams
type national sports team
type sport competition
action count
action filter_multi_types
action find_reverse
entity Honduras national football team
relation participating teams
type recurring event
type sport competition
[[{'concept': 'recurring event'}, {'concept': 'sport competition'}], 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?t ) WHERE { { ?c rdf:type ontology:national_sports_team . ?o rdf:type ontology:recurring_event . ?o property:participating_teams ?c } UNION { ?c rdf:type ontology:national_sports_team . ?o rdf:type ontology:sport_competition . ?o property:participating_teams ?c } } GROUP BY ?c } . FILTER ( ?t < ?m ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { { { ?x rdf:type ontology:recurring_event } UNION { ?x rdf:type ontology:sport_competition } } . ?x property:participating_teams resource:Honduras_national_football_team } } }
[]
national sports team recurring event sport competition
SYSTEM
37
Q130582 Q207441 Q189322 Q21130178 Q223748 Q188228 Q21130160 Q236014 Q21130162 Q21130165 Q21130166 Q21130168 Q235910 Q1131732 Q192828 Q270080 Q182740 Q175315 Q214151 Q191406 Q172221 Q191595 Q21130170 Q152424 Q181190 Q186243 Q235399 Q28089 Q236006 Q721418 Q192149 Q14132 Q2535606 Q21130157 Q21130156 Q208635 Q206828
(c(Q15275719)|c(Q13406554),P1923,c(Q1194951))
action count
action less
action union
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q15275719
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q13406554
action count
action filter_multi_types
action find_reverse
entity Q180187
relation P1923
type Q15275719
type Q13406554
[ANSWER]
[[{'concept': 'Q15275719'}, {'concept': 'Q13406554'}], 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?t ) WHERE { { ?c rdf:type ontology:Q1194951 . ?o rdf:type ontology:Q15275719 . ?o property:P1923 ?c } UNION { ?c rdf:type ontology:Q1194951 . ?o rdf:type ontology:Q13406554 . ?o property:P1923 ?c } } GROUP BY ?c } . FILTER ( ?t < ?m ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { { { ?x rdf:type ontology:Q15275719 } UNION { ?x rdf:type ontology:Q13406554 } } . ?x property:P1923 resource:Q180187 } } }
China PR national football team Senegal national football team Latvia national football team Transylvania national quidditch team Panama national football team El Salvador national football team England national quidditch team Cuba national football team Wales national quidditch team Scotland national quidditch team Luxembourg national quidditch team Uganda national quidditch team United Arab Emirates national football team Serbia and Montenegro national football team Angola national football team Congo DR national football team Serbia national football team New Zealand national football team Venezuela national football team Israel national football team Slovenia national football team Togo national football team Peru national quidditch team East Germany national football team Bosnia and Herzegovina national football team Iraq national football team Jamaica national football team Egypt national football team Haiti national football team CIS national football team Trinidad and Tobago national football team North Korea national football team Dutch East Indies national football team Bulgaria national quidditch team Ireland national quidditch team Canada national soccer team Kuwait national football team
37
action count
action less
action union
action find_reverse_tuple_counts
relation participating teams
type national sports team
type recurring event
action find_reverse_tuple_counts
relation participating teams
type national sports team
type sport competition
action count
action filter_multi_types
action find_reverse
entity Honduras national football team
relation participating teams
type recurring event
type sport competition
[[{'concept': 'recurring event'}, {'concept': 'sport competition'}], 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?t ) WHERE { { ?c rdf:type ontology:national_sports_team . ?o rdf:type ontology:recurring_event . ?o property:participating_teams ?c } UNION { ?c rdf:type ontology:national_sports_team . ?o rdf:type ontology:sport_competition . ?o property:participating_teams ?c } } GROUP BY ?c } . FILTER ( ?t < ?m ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { { { ?x rdf:type ontology:recurring_event } UNION { ?x rdf:type ontology:sport_competition } } . ?x property:participating_teams resource:Honduras_national_football_team } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5974717
P84
Q56061
USER
Who designed the architecture of ITC Grand Chola Hotel ?
(Q5974717,P84,c(Q56061))
action filter_type
action find
entity Q5974717
relation P84
type Q56061
['Q5974717', 'P84', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q5974717 property:P84 ?p . ?p rdf:type ontology:Q56061 }
ITC Grand Chola Hotel
action filter_type
action find
entity ITC Grand Chola Hotel
relation architect
type administrative territorial entity
['ITC Grand Chola Hotel', 'architect', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:ITC_Grand_Chola_Hotel property:architect ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q334
SYSTEM
Singapore
Q334
(Q5974717,P84,c(Q56061))
action filter_type
action find
entity Q5974717
relation P84
type Q56061
[ANSWER] designed the architecture of ITC Grand Chola Hotel
['Q5974717', 'P84', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q5974717 property:P84 ?p . ?p rdf:type ontology:Q56061 }
Singapore
Singapore designed the architecture of ITC Grand Chola Hotel
Singapore
action filter_type
action find
entity ITC Grand Chola Hotel
relation architect
type administrative territorial entity
['ITC Grand Chola Hotel', 'architect', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:ITC_Grand_Chola_Hotel property:architect ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5974717
P127
Q43229
USER
Which organization does ITC Grand Chola Hotel belong to ?
(Q5974717,P127,c(Q43229))
action filter_type
action find
entity Q5974717
relation P127
type Q43229
['Q5974717', 'P127', {'concept': 'Q43229'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q43229 . resource:Q5974717 property:P127 ?q }
ITC Grand Chola Hotel
action filter_type
action find
entity ITC Grand Chola Hotel
relation owned by
type organization
['ITC Grand Chola Hotel', 'owned by', {'concept': 'organization'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:organization . resource:ITC_Grand_Chola_Hotel property:owned_by ?q }
[]
organization
Q17058333
SYSTEM
ITC Hotels
Q17058333
(Q5974717,P127,c(Q43229))
action filter_type
action find
entity Q5974717
relation P127
type Q43229
ITC Grand Chola Hotel belongs to [ANSWER]
['Q5974717', 'P127', {'concept': 'Q43229'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q43229 . resource:Q5974717 property:P127 ?q }
ITC Hotels
ITC Grand Chola Hotel belongs to ITC Hotels
ITC Hotels
action filter_type
action find
entity ITC Grand Chola Hotel
relation owned by
type organization
['ITC Grand Chola Hotel', 'owned by', {'concept': 'organization'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:organization . resource:ITC_Grand_Chola_Hotel property:owned_by ?q }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q581755
Q43229
USER
And what about Helsinki Stock Exchange?
(Q581755,P127,c(Q43229))
action filter_type
action find
entity Q581755
relation P127
type Q43229
['Q581755', 'P127', {'concept': 'Q43229'}]
SELECT DISTINCT ?s WHERE { resource:Q581755 property:P127 ?s . ?s rdf:type ontology:Q43229 }
Helsinki Stock Exchange
action filter_type
action find
entity Helsinki Stock Exchange
relation owned by
type organization
['Helsinki Stock Exchange', 'owned by', {'concept': 'organization'}]
SELECT DISTINCT ?s WHERE { resource:Helsinki_Stock_Exchange property:owned_by ?s . ?s rdf:type ontology:organization }
[]
organization
Q1132158
SYSTEM
Nasdaq Nordic
Q1132158
(Q581755,P127,c(Q43229))
action filter_type
action find
entity Q581755
relation P127
type Q43229
[ANSWER]
['Q581755', 'P127', {'concept': 'Q43229'}]
SELECT DISTINCT ?s WHERE { resource:Q581755 property:P127 ?s . ?s rdf:type ontology:Q43229 }
Nasdaq Nordic
Nasdaq Nordic
action filter_type
action find
entity Helsinki Stock Exchange
relation owned by
type organization
['Helsinki Stock Exchange', 'owned by', {'concept': 'organization'}]
SELECT DISTINCT ?s WHERE { resource:Helsinki_Stock_Exchange property:owned_by ?s . ?s rdf:type ontology:organization }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4978795 Q1132158
P19 P159
Q56061
USER
Which administrative territories are the headquarter locations of Nasdaq Nordic or are the birthplace of Lisa Siwe ?
OR((Q1132158,P159,c(Q56061)), (Q4978795,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1132158
relation P159
action find
entity Q4978795
relation P19
type Q56061
{'OR': [['Q1132158', 'P159', {'concept': 'Q56061'}], ['Q4978795', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q1132158 property:P159 ?t } UNION { resource:Q4978795 property:P19 ?t } } . ?t rdf:type ontology:Q56061 }
Lisa Siwe Nasdaq Nordic
action filter_type
action union
action find
entity Nasdaq Nordic
relation headquarters location
action find
entity Lisa Siwe
relation place of birth
type administrative territorial entity
{'OR': [['Nasdaq Nordic', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Lisa Siwe', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Nasdaq_Nordic property:headquarters_location ?t } UNION { resource:Lisa_Siwe property:place_of_birth ?t } } . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q7860560 Q1754
SYSTEM
Tynnered, Stockholm
Q7860560 Q1754
OR((Q1132158,P159,c(Q56061)), (Q4978795,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1132158
relation P159
action find
entity Q4978795
relation P19
type Q56061
[ANSWERS] are the headquarter locations of Nasdaq Nordic or are the birthplace of Lisa Siwe
{'OR': [['Q1132158', 'P159', {'concept': 'Q56061'}], ['Q4978795', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q1132158 property:P159 ?t } UNION { resource:Q4978795 property:P19 ?t } } . ?t rdf:type ontology:Q56061 }
Tynnered Stockholm
Tynnered and Stockholm are the headquarter locations of Nasdaq Nordic or are the birthplace of Lisa Siwe
Tynnered Stockholm
action filter_type
action union
action find
entity Nasdaq Nordic
relation headquarters location
action find
entity Lisa Siwe
relation place of birth
type administrative territorial entity
{'OR': [['Nasdaq Nordic', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Lisa Siwe', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Nasdaq_Nordic property:headquarters_location ?t } UNION { resource:Lisa_Siwe property:place_of_birth ?t } } . ?t rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q23936316
P532
Q56061 Q2235308
USER
How many ship types have more number of administrative territories as their base harbour than Eliza Francis ?
(c(Q2235308),P532,c(Q56061))
action count
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q23936316
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?a ) WHERE { ?i property:P532 ?z . ?i rdf:type ontology:Q2235308 . ?z rdf:type ontology:Q56061 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { resource:Q23936316 property:P532 ?v . ?v rdf:type ontology:Q2235308 } } . FILTER ( ?a > ?f ) }
Eliza Francis
action count
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Eliza Francis
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?a ) WHERE { ?i property:port_of_registry ?z . ?i rdf:type ontology:ship_type . ?z rdf:type ontology:administrative_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { resource:Eliza_Francis property:port_of_registry ?v . ?v rdf:type ontology:ship_type } } . FILTER ( ?a > ?f ) }
[]
administrative territorial entity ship type
SYSTEM
70
Q2992316 Q2301456 Q983141 Q133606 Q26988086 Q168474 Q300311 Q20489530 Q5338632 Q7499755 Q2124429 Q1293488 Q1017179 Q7120838 Q7393546 Q25173 Q14493958 Q18128240 Q664284 Q26988094 Q21196329 Q10659251 Q477173 Q130373 Q19608222 Q11707059 Q1026780 Q22342351 Q15662618 Q33209 Q1514518 Q2596850 Q16854668 Q1325547 Q761593 Q26883829 Q2124449 Q778649 Q3952367 Q11705702 Q24039469 Q751584 Q6930211 Q16629249 Q497065 Q3053251 Q468026 Q1439419 Q23579589 Q4686475 Q26987769 Q11891639 Q321007 Q6720006 Q741803 Q338340 Q7120888 Q215692 Q917188 Q18213370 Q1129910 Q2714360 Q16852551 Q1514126 Q18711004 Q1339472 Q3558075 Q192381 Q493616 Q35462
(c(Q2235308),P532,c(Q56061))
action count
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q23936316
relation P532
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?a ) WHERE { ?i property:P532 ?z . ?i rdf:type ontology:Q2235308 . ?z rdf:type ontology:Q56061 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { resource:Q23936316 property:P532 ?v . ?v rdf:type ontology:Q2235308 } } . FILTER ( ?a > ?f ) }
HSC Condor Rapide MS Viking XPRS MY Sam Simon MS Star Meteora MV Arctic Sunrise A MS Harmony of the Seas Edith Mærsk Shoalway RMS Samaria MV Esperanza SS Burutu PS Empress Queen SS Empire Airman RMS Titanic Mærsk Mc-Kinney Møller MS Quantum of the Seas Pioneering Spirit Emma Victory SS Argentina S/S Drottningholm Emma Mærsk Admiral Makarov HSC Condor Liberation MS Arrow SS California Modern Express Djurgården 8 Mary Celeste Sapphire Princess MS Azura Mein Schiff 4 MT Mastera CMA CGM Marco Polo VOS Sympathy RMS St Helena Eclipse MS Norman Atlantic MV Ascension HSC Highspeed 5 MS Express Samina msy Wind Song Varnek (ship, 1974-2010) MV Baltic Ace Empire Sandy SS Maxim Gorkiy Vitus Bering MV Christinaki Adventure British Explorer SS Coccolita RMS Olympic MV Royal Daffodil RMS Mauretania MV Boudicca SS Prince of Wales HMHS Britannic MS Brilliance of the Seas Anthem of the Seas SS Potsdam MS Empress MS Epsilon MS Marco Polo MV Hoegh Osaka RMS Empress of Ireland Vieux Crabe MS Oasis of the Seas Royal Clipper RMS Aquitania
70
action count
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Eliza Francis
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?a ) WHERE { ?i property:port_of_registry ?z . ?i rdf:type ontology:ship_type . ?z rdf:type ontology:administrative_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { resource:Eliza_Francis property:port_of_registry ?v . ?v rdf:type ontology:ship_type } } . FILTER ( ?a > ?f ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q334 Q867097
P36
Q56061
USER
How many administrative territories are called the capital of Singapore or Valle Department ?
(Q334,P36,c(Q56061)) (Q867097,P36,c(Q56061))
action count
action union
action filter_type
action find
entity Q334
relation P36
type Q56061
action filter_type
action find
entity Q867097
relation P36
type Q56061
['Q334', 'P36', {'concept': 'Q56061'}] ['Q867097', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { ?f property:P36 ?n . VALUES ( ?f ) { ( resource:Q334 ) ( resource:Q867097 ) } }
Singapore Valle Department
action count
action union
action filter_type
action find
entity Singapore
relation capital
type administrative territorial entity
action filter_type
action find
entity Valle Department
relation capital
type administrative territorial entity
['Singapore', 'capital', {'concept': 'administrative territorial entity'}] ['Valle Department', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { ?f property:capital ?n . VALUES ( ?f ) { ( resource:Singapore ) ( resource:Valle_Department ) } }
[]
administrative territorial entity
SYSTEM
2
Q334 Q633929
(Q334,P36,c(Q56061)) (Q867097,P36,c(Q56061))
action count
action union
action filter_type
action find
entity Q334
relation P36
type Q56061
action filter_type
action find
entity Q867097
relation P36
type Q56061
[ANSWER]
['Q334', 'P36', {'concept': 'Q56061'}] ['Q867097', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { ?f property:P36 ?n . VALUES ( ?f ) { ( resource:Q334 ) ( resource:Q867097 ) } }
Singapore Nacaome
2
action count
action union
action filter_type
action find
entity Singapore
relation capital
type administrative territorial entity
action filter_type
action find
entity Valle Department
relation capital
type administrative territorial entity
['Singapore', 'capital', {'concept': 'administrative territorial entity'}] ['Valle Department', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { ?f property:capital ?n . VALUES ( ?f ) { ( resource:Singapore ) ( resource:Valle_Department ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q334 Q846
P530
Q1048835
USER
How many political territories have ambassadorial relations with Singapore and Qatar ?
(c(Q1048835),P530,Q334) (c(Q1048835),P530,Q846)
action count
action intersection
action filter_type
action find_reverse
entity Q334
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q846
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q334'] [{'concept': 'Q1048835'}, 'P530', 'Q846']
SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { ?k property:P530 resource:Q334 . ?k rdf:type ontology:Q1048835 . ?k property:P530 resource:Q846 . ?k rdf:type ontology:Q1048835 }
Singapore Qatar
action count
action intersection
action filter_type
action find_reverse
entity Singapore
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Qatar
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Singapore'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Qatar']
SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { ?k property:diplomatic_relation resource:Singapore . ?k rdf:type ontology:political_territorial_entity . ?k property:diplomatic_relation resource:Qatar . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q16
(c(Q1048835),P530,Q334) (c(Q1048835),P530,Q846)
action count
action intersection
action filter_type
action find_reverse
entity Q334
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q846
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q334'] [{'concept': 'Q1048835'}, 'P530', 'Q846']
SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { ?k property:P530 resource:Q334 . ?k rdf:type ontology:Q1048835 . ?k property:P530 resource:Q846 . ?k rdf:type ontology:Q1048835 }
Australia Canada
2
action count
action intersection
action filter_type
action find_reverse
entity Singapore
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Qatar
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Singapore'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Qatar']
SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { ?k property:diplomatic_relation resource:Singapore . ?k rdf:type ontology:political_territorial_entity . ?k property:diplomatic_relation resource:Qatar . ?k rdf:type ontology:political_territorial_entity }
[]