Simple Question (Direct)
Simple Question
Q216816
P1412
Q34770
USER
Which language can Míchel Salgado read ?
(Q216816,P1412,c(Q34770))
action filter_type
action find
entity Q216816
relation P1412
type Q34770
['Q216816', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?q WHERE { resource:Q216816 property:P1412 ?q . ?q rdf:type ontology:Q34770 }
Míchel Salgado
action filter_type
action find
entity Míchel Salgado
relation languages spoken, written or signed
type language
['Míchel Salgado', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?q WHERE { resource:Míchel_Salgado property:languages_spoken,_written_or_signed ?q . ?q rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q216816,P1412,c(Q34770))
action filter_type
action find
entity Q216816
relation P1412
type Q34770
Míchel Salgado can read in [ANSWER]
['Q216816', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?q WHERE { resource:Q216816 property:P1412 ?q . ?q rdf:type ontology:Q34770 }
Spanish
Míchel Salgado can read in Spanish
Spanish
action filter_type
action find
entity Míchel Salgado
relation languages spoken, written or signed
type language
['Míchel Salgado', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?q WHERE { resource:Míchel_Salgado property:languages_spoken,_written_or_signed ?q . ?q rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q216816
P54
Q1194951
USER
Which national sports teams are Míchel Salgado a member of ?
(Q216816,P54,c(Q1194951))
action filter_type
action find
entity Q216816
relation P54
type Q1194951
['Q216816', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?t WHERE { resource:Q216816 property:P54 ?t . ?t rdf:type ontology:Q1194951 }
Míchel Salgado
action filter_type
action find
entity Míchel Salgado
relation member of sports team
type national sports team
['Míchel Salgado', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?t WHERE { resource:Míchel_Salgado property:member_of_sports_team ?t . ?t rdf:type ontology:national_sports_team }
[]
national sports team
Q42267 Q1322761
SYSTEM
Spain national football team, Galicia national football team
Q42267 Q1322761
(Q216816,P54,c(Q1194951))
action filter_type
action find
entity Q216816
relation P54
type Q1194951
[ANSWERS] are Míchel Salgado a member of
['Q216816', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?t WHERE { resource:Q216816 property:P54 ?t . ?t rdf:type ontology:Q1194951 }
Spain national football team Galicia national football team
Spain national football team and Galicia national football team are Míchel Salgado a member of
Spain national football team Galicia national football team
action filter_type
action find
entity Míchel Salgado
relation member of sports team
type national sports team
['Míchel Salgado', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?t WHERE { resource:Míchel_Salgado property:member_of_sports_team ?t . ?t rdf:type ontology:national_sports_team }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q152424
P1923
Q1194951 Q13406554 Q15275719
USER
How many national sports teams were participants in lesser number of sport competitions or recurring events than East Germany national football team ?
(c(Q13406554)|c(Q15275719),P1923,c(Q1194951))
action count
action less
action union
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q13406554
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q15275719
action count
action filter_multi_types
action find_reverse
entity Q152424
relation P1923
type Q13406554
type Q15275719
[[{'concept': 'Q13406554'}, {'concept': 'Q15275719'}], 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) ?z WHERE { { ?q rdf:type ontology:Q13406554 . ?z rdf:type ontology:Q1194951 . ?q property:P1923 ?z } UNION { ?q property:P1923 ?z . ?z rdf:type ontology:Q1194951 . ?q rdf:type ontology:Q15275719 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { ?r property:P1923 resource:Q152424 . { VALUES ( ?m ) { ( ontology:Q13406554 ) ( ontology:Q15275719 ) } . ?r rdf:type ?m } } } . FILTER ( ?u < ?n ) }
East Germany national football team
action count
action less
action union
action find_reverse_tuple_counts
relation participating teams
type national sports team
type sport competition
action find_reverse_tuple_counts
relation participating teams
type national sports team
type recurring event
action count
action filter_multi_types
action find_reverse
entity East Germany national football team
relation participating teams
type sport competition
type recurring event
[[{'concept': 'sport competition'}, {'concept': 'recurring event'}], 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) ?z WHERE { { ?q rdf:type ontology:sport_competition . ?z rdf:type ontology:national_sports_team . ?q property:participating_teams ?z } UNION { ?q property:participating_teams ?z . ?z rdf:type ontology:national_sports_team . ?q rdf:type ontology:recurring_event } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { ?r property:participating_teams resource:East_Germany_national_football_team . { VALUES ( ?m ) { ( ontology:sport_competition ) ( ontology:recurring_event ) } . ?r rdf:type ?m } } } . FILTER ( ?u < ?n ) }
[]
national sports team sport competition recurring event
SYSTEM
11
Q189322 Q21130178 Q21130160 Q21130162 Q21130165 Q21130166 Q21130168 Q21130170 Q721418 Q21130157 Q21130156
(c(Q13406554)|c(Q15275719),P1923,c(Q1194951))
action count
action less
action union
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q13406554
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q15275719
action count
action filter_multi_types
action find_reverse
entity Q152424
relation P1923
type Q13406554
type Q15275719
[ANSWER]
[[{'concept': 'Q13406554'}, {'concept': 'Q15275719'}], 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) ?z WHERE { { ?q rdf:type ontology:Q13406554 . ?z rdf:type ontology:Q1194951 . ?q property:P1923 ?z } UNION { ?q property:P1923 ?z . ?z rdf:type ontology:Q1194951 . ?q rdf:type ontology:Q15275719 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { ?r property:P1923 resource:Q152424 . { VALUES ( ?m ) { ( ontology:Q13406554 ) ( ontology:Q15275719 ) } . ?r rdf:type ?m } } } . FILTER ( ?u < ?n ) }
Latvia national football team Transylvania national quidditch team England national quidditch team Wales national quidditch team Scotland national quidditch team Luxembourg national quidditch team Uganda national quidditch team Peru national quidditch team CIS national football team Bulgaria national quidditch team Ireland national quidditch team
11
action count
action less
action union
action find_reverse_tuple_counts
relation participating teams
type national sports team
type sport competition
action find_reverse_tuple_counts
relation participating teams
type national sports team
type recurring event
action count
action filter_multi_types
action find_reverse
entity East Germany national football team
relation participating teams
type sport competition
type recurring event
[[{'concept': 'sport competition'}, {'concept': 'recurring event'}], 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) ?z WHERE { { ?q rdf:type ontology:sport_competition . ?z rdf:type ontology:national_sports_team . ?q property:participating_teams ?z } UNION { ?q property:participating_teams ?z . ?z rdf:type ontology:national_sports_team . ?q rdf:type ontology:recurring_event } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { ?r property:participating_teams resource:East_Germany_national_football_team . { VALUES ( ?m ) { ( ontology:sport_competition ) ( ontology:recurring_event ) } . ?r rdf:type ?m } } } . FILTER ( ?u < ?n ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q184387
P1923
Q1194951 Q13406554 Q15275719
USER
And also tell me about Norway national football team?
(c(Q13406554)|c(Q15275719),P1923,c(Q1194951))
action count
action less
action union
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q13406554
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q15275719
action count
action filter_multi_types
action find_reverse
entity Q184387
relation P1923
type Q13406554
type Q15275719
[[{'concept': 'Q13406554'}, {'concept': 'Q15275719'}], 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ?m . VALUES ( ?m ) { ( ontology:Q13406554 ) ( ontology:Q15275719 ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { { { ?z rdf:type ontology:Q13406554 } UNION { ?z rdf:type ontology:Q15275719 } } . ?z property:P1923 resource:Q184387 } } . FILTER ( ?d < ?f ) }
Norway national football team
action count
action less
action union
action find_reverse_tuple_counts
relation participating teams
type national sports team
type sport competition
action find_reverse_tuple_counts
relation participating teams
type national sports team
type recurring event
action count
action filter_multi_types
action find_reverse
entity Norway national football team
relation participating teams
type sport competition
type recurring event
[[{'concept': 'sport competition'}, {'concept': 'recurring event'}], 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ?m . VALUES ( ?m ) { ( ontology:sport_competition ) ( ontology:recurring_event ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { { { ?z rdf:type ontology:sport_competition } UNION { ?z rdf:type ontology:recurring_event } } . ?z property:participating_teams resource:Norway_national_football_team } } . FILTER ( ?d < ?f ) }
[]
national sports team sport competition recurring event
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(Q13406554)|c(Q15275719),P1923,c(Q1194951))
action count
action less
action union
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q13406554
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q15275719
action count
action filter_multi_types
action find_reverse
entity Q184387
relation P1923
type Q13406554
type Q15275719
[ANSWER]
[[{'concept': 'Q13406554'}, {'concept': 'Q15275719'}], 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ?m . VALUES ( ?m ) { ( ontology:Q13406554 ) ( ontology:Q15275719 ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { { { ?z rdf:type ontology:Q13406554 } UNION { ?z rdf:type ontology:Q15275719 } } . ?z property:P1923 resource:Q184387 } } . FILTER ( ?d < ?f ) }
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 sport competition
action find_reverse_tuple_counts
relation participating teams
type national sports team
type recurring event
action count
action filter_multi_types
action find_reverse
entity Norway national football team
relation participating teams
type sport competition
type recurring event
[[{'concept': 'sport competition'}, {'concept': 'recurring event'}], 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ?m . VALUES ( ?m ) { ( ontology:sport_competition ) ( ontology:recurring_event ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { { { ?z rdf:type ontology:sport_competition } UNION { ?z rdf:type ontology:recurring_event } } . ?z property:participating_teams resource:Norway_national_football_team } } . FILTER ( ?d < ?f ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q36741
P282
Q8192 Q9779 Q34770
USER
How many languages are greater number of writing systems or alphabets the writing system of than Polabian ?
(c(Q34770),P282,c(Q8192)|c(Q9779))
action count
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q8192
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q36741
relation P282
type Q8192
type Q9779
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?c ) WHERE { { ?u property:P282 ?j . ?u rdf:type ontology:Q34770 . ?j rdf:type ontology:Q8192 } UNION { ?u property:P282 ?j . ?j rdf:type ontology:Q9779 . ?u rdf:type ontology:Q34770 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { resource:Q36741 property:P282 ?s . { VALUES ( ?v ) { ( ontology:Q9779 ) ( ontology:Q8192 ) } . ?s rdf:type ?v } } } . FILTER ( ?c > ?b ) }
Polabian
action count
action greater
action union
action find_tuple_counts
relation writing system
type language
type writing system
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity Polabian
relation writing system
type writing system
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?c ) WHERE { { ?u property:writing_system ?j . ?u rdf:type ontology:language . ?j rdf:type ontology:writing_system } UNION { ?u property:writing_system ?j . ?j rdf:type ontology:alphabet . ?u rdf:type ontology:language } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { resource:Polabian property:writing_system ?s . { VALUES ( ?v ) { ( ontology:alphabet ) ( ontology:writing_system ) } . ?s rdf:type ?v } } } . FILTER ( ?c > ?b ) }
[]
writing system alphabet language
SYSTEM
9
Q182695 Q13211 Q35499 Q1669994 Q33251 Q21161942 Q1639124 Q36464 Q652
(c(Q34770),P282,c(Q8192)|c(Q9779))
action count
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q8192
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q36741
relation P282
type Q8192
type Q9779
[ANSWER]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?c ) WHERE { { ?u property:P282 ?j . ?u rdf:type ontology:Q34770 . ?j rdf:type ontology:Q8192 } UNION { ?u property:P282 ?j . ?j rdf:type ontology:Q9779 . ?u rdf:type ontology:Q34770 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { resource:Q36741 property:P282 ?s . { VALUES ( ?v ) { ( ontology:Q9779 ) ( ontology:Q8192 ) } . ?s rdf:type ?v } } } . FILTER ( ?c > ?b ) }
Late Old Japanese Ruthenian Old Church Slavonic Minoan language Church Slavonic Serbian written in Cyrillic Slavoserbian Nivkh language Italian
9
action count
action greater
action union
action find_tuple_counts
relation writing system
type language
type writing system
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity Polabian
relation writing system
type writing system
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?c ) WHERE { { ?u property:writing_system ?j . ?u rdf:type ontology:language . ?j rdf:type ontology:writing_system } UNION { ?u property:writing_system ?j . ?j rdf:type ontology:alphabet . ?u rdf:type ontology:language } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { resource:Polabian property:writing_system ?s . { VALUES ( ?v ) { ( ontology:alphabet ) ( ontology:writing_system ) } . ?s rdf:type ?v } } } . FILTER ( ?c > ?b ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q36822
P282
Q8192 Q9779 Q34770
USER
And how about Slovincian language?
(c(Q34770),P282,c(Q8192)|c(Q9779))
action count
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q8192
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q36822
relation P282
type Q8192
type Q9779
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?e WHERE { { ?e property:P282 ?x . ?x rdf:type ontology:Q8192 . ?e rdf:type ontology:Q34770 } UNION { ?x rdf:type ontology:Q9779 . ?e rdf:type ontology:Q34770 . ?e property:P282 ?x } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { resource:Q36822 property:P282 ?c . { ?c rdf:type ?p . VALUES ( ?p ) { ( ontology:Q8192 ) ( ontology:Q9779 ) } } } } . FILTER ( ?s > ?o ) }
Slovincian language
action count
action greater
action union
action find_tuple_counts
relation writing system
type language
type writing system
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity Slovincian language
relation writing system
type writing system
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?e WHERE { { ?e property:writing_system ?x . ?x rdf:type ontology:writing_system . ?e rdf:type ontology:language } UNION { ?x rdf:type ontology:alphabet . ?e rdf:type ontology:language . ?e property:writing_system ?x } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { resource:Slovincian_language property:writing_system ?c . { ?c rdf:type ?p . VALUES ( ?p ) { ( ontology:writing_system ) ( ontology:alphabet ) } } } } . FILTER ( ?s > ?o ) }
[]
writing system alphabet language
SYSTEM
9
Q182695 Q13211 Q35499 Q1669994 Q33251 Q21161942 Q1639124 Q36464 Q652
(c(Q34770),P282,c(Q8192)|c(Q9779))
action count
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q8192
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q36822
relation P282
type Q8192
type Q9779
[ANSWER]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?e WHERE { { ?e property:P282 ?x . ?x rdf:type ontology:Q8192 . ?e rdf:type ontology:Q34770 } UNION { ?x rdf:type ontology:Q9779 . ?e rdf:type ontology:Q34770 . ?e property:P282 ?x } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { resource:Q36822 property:P282 ?c . { ?c rdf:type ?p . VALUES ( ?p ) { ( ontology:Q8192 ) ( ontology:Q9779 ) } } } } . FILTER ( ?s > ?o ) }
Late Old Japanese Ruthenian Old Church Slavonic Minoan language Church Slavonic Serbian written in Cyrillic Slavoserbian Nivkh language Italian
9
action count
action greater
action union
action find_tuple_counts
relation writing system
type language
type writing system
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity Slovincian language
relation writing system
type writing system
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?e WHERE { { ?e property:writing_system ?x . ?x rdf:type ontology:writing_system . ?e rdf:type ontology:language } UNION { ?x rdf:type ontology:alphabet . ?e rdf:type ontology:language . ?e property:writing_system ?x } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { resource:Slovincian_language property:writing_system ?c . { ?c rdf:type ?p . VALUES ( ?p ) { ( ontology:writing_system ) ( ontology:alphabet ) } } } } . FILTER ( ?s > ?o ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q42267
P463
Q1346006
USER
Which international sport governing bodies were Spain national football team a member of ?
(Q42267,P463,c(Q1346006))
action filter_type
action find
entity Q42267
relation P463
type Q1346006
['Q42267', 'P463', {'concept': 'Q1346006'}]
SELECT DISTINCT ?t WHERE { resource:Q42267 property:P463 ?t . ?t rdf:type ontology:Q1346006 }
Spain national football team
action filter_type
action find
entity Spain national football team
relation member of
type international sport governing body
['Spain national football team', 'member of', {'concept': 'international sport governing body'}]
SELECT DISTINCT ?t WHERE { resource:Spain_national_football_team property:member_of ?t . ?t rdf:type ontology:international_sport_governing_body }
[]
international sport governing body
Q35572 Q253414
SYSTEM
Union of European Football Associations, FIFA
Q35572 Q253414
(Q42267,P463,c(Q1346006))
action filter_type
action find
entity Q42267
relation P463
type Q1346006
And [ANSWERS] were Spain national football team a member of
['Q42267', 'P463', {'concept': 'Q1346006'}]
SELECT DISTINCT ?t WHERE { resource:Q42267 property:P463 ?t . ?t rdf:type ontology:Q1346006 }
Union of European Football Associations FIFA
And Union of European Football Associations and FIFA were Spain national football team a member of
Union of European Football Associations FIFA
action filter_type
action find
entity Spain national football team
relation member of
type international sport governing body
['Spain national football team', 'member of', {'concept': 'international sport governing body'}]
SELECT DISTINCT ?t WHERE { resource:Spain_national_football_team property:member_of ?t . ?t rdf:type ontology:international_sport_governing_body }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q35572 Q253414
P641
Q349
USER
Which sports did those international sport governing bodies participate in ?
(Q35572,P641,c(Q349)) (Q253414,P641,c(Q349))
action filter_type
action find
entity prev_answer
relation P641
type Q349
['Q35572', 'P641', {'concept': 'Q349'}] ['Q253414', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { ?u property:P641 ?n . ?n rdf:type ontology:Q349 . VALUES ( ?u ) { ( resource:Q35572 ) ( resource:Q253414 ) } }
Union of European Football Associations FIFA
action filter_type
action find
entity prev_answer
relation sport
type sport
['Union of European Football Associations', 'sport', {'concept': 'sport'}] ['FIFA', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { ?u property:sport ?n . ?n rdf:type ontology:sport . VALUES ( ?u ) { ( resource:Union_of_European_Football_Associations ) ( resource:FIFA ) } }
[]
sport
Q2736 Q2736 Q210778
SYSTEM
association football for 1st, 2nd, beach soccer for 3rd
Q2736 Q2736 Q210778
(Q35572,P641,c(Q349)) (Q253414,P641,c(Q349))
action filter_type
action find
entity prev_answer
relation P641
type Q349
[ANSWERS]
['Q35572', 'P641', {'concept': 'Q349'}] ['Q253414', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { ?u property:P641 ?n . ?n rdf:type ontology:Q349 . VALUES ( ?u ) { ( resource:Q35572 ) ( resource:Q253414 ) } }
association football association football beach soccer
Those international sport governing bodies participated in association football, association football and beach soccer
association football association football beach soccer
action filter_type
action find
entity prev_answer
relation sport
type sport
['Union of European Football Associations', 'sport', {'concept': 'sport'}] ['FIFA', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { ?u property:sport ?n . ?n rdf:type ontology:sport . VALUES ( ?u ) { ( resource:Union_of_European_Football_Associations ) ( resource:FIFA ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q253414
P361
Q874405
USER
Which social group is a part of FIFA ?
(c(Q874405),P361,Q253414)
action filter_type
action find_reverse
entity Q253414
relation P361
type Q874405
[{'concept': 'Q874405'}, 'P361', 'Q253414']
SELECT DISTINCT ?m WHERE { ?m property:P361 resource:Q253414 . ?m rdf:type ontology:Q874405 }
FIFA
action filter_type
action find_reverse
entity FIFA
relation part of
type social group
[{'concept': 'social group'}, 'part of', 'FIFA']
SELECT DISTINCT ?m WHERE { ?m property:part_of resource:FIFA . ?m rdf:type ontology:social_group }
[]
social group
Q5425713
SYSTEM
FIFA Congress
Q5425713
(c(Q874405),P361,Q253414)
action filter_type
action find_reverse
entity Q253414
relation P361
type Q874405
The [ANSWER] is a part of FIFA
[{'concept': 'Q874405'}, 'P361', 'Q253414']
SELECT DISTINCT ?m WHERE { ?m property:P361 resource:Q253414 . ?m rdf:type ontology:Q874405 }
FIFA Congress
The FIFA Congress is a part of FIFA
FIFA Congress
action filter_type
action find_reverse
entity FIFA
relation part of
type social group
[{'concept': 'social group'}, 'part of', 'FIFA']
SELECT DISTINCT ?m WHERE { ?m property:part_of resource:FIFA . ?m rdf:type ontology:social_group }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q253414
P108
Q502895
USER
Which people work for FIFA ?
(c(Q502895),P108,Q253414)
action filter_type
action find_reverse
entity Q253414
relation P108
type Q502895
[{'concept': 'Q502895'}, 'P108', 'Q253414']
SELECT DISTINCT ?a WHERE { ?a property:P108 resource:Q253414 . ?a rdf:type ontology:Q502895 }
FIFA
action filter_type
action find_reverse
entity FIFA
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'FIFA']
SELECT DISTINCT ?a WHERE { ?a property:employer resource:FIFA . ?a rdf:type ontology:common_name }
[]
common name
Q3082998 Q5437914 Q21369081
SYSTEM
Frans Masson, Fatma Samoura, Suren Baliyan
Q23669278 Q21369081 Q5437914 Q23662755 Q17986101 Q3082998 Q20980444
(c(Q502895),P108,Q253414)
action filter_type
action find_reverse
entity Q253414
relation P108
type Q502895
[ANSWERS] work for FIFA
[{'concept': 'Q502895'}, 'P108', 'Q253414']
SELECT DISTINCT ?a WHERE { ?a property:P108 resource:Q253414 . ?a rdf:type ontology:Q502895 }
Hiroyuki Kimura Suren Baliyan Fatma Samoura Dejan Jakimovski Alain Bieri Frans Masson Urs Linsi
Frans Masson, Fatma Samoura and Suren Baliyan work for FIFA
Frans Masson Fatma Samoura Suren Baliyan
action filter_type
action find_reverse
entity FIFA
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'FIFA']
SELECT DISTINCT ?a WHERE { ?a property:employer resource:FIFA . ?a rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3082998
P106
Q12737077
USER
What are the job of that person ?
(Q3082998,P106,c(Q12737077))
action filter_type
action find
entity Q3082998
relation P106
type Q12737077
['Q3082998', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q3082998 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Frans Masson
action filter_type
action find
entity Frans Masson
relation occupation
type occupation
['Frans Masson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Frans_Masson property:occupation ?q . ?q rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q5437914
SYSTEM
Did you mean Fatma Samoura ?
Q3082998 Q5437914 Q21369081
(Q3082998,P106,c(Q12737077)) (Q5437914,P106,c(Q12737077)) (Q21369081,P106,c(Q12737077))
[ANSWER]
['Q3082998', 'P106', {'concept': 'Q12737077'}] ['Q5437914', 'P106', {'concept': 'Q12737077'}] ['Q21369081', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q3082998 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Frans Masson Fatma Samoura Suren Baliyan
Did you mean Fatma Samoura ?
Fatma Samoura
['Frans Masson', 'occupation', {'concept': 'occupation'}] ['Fatma Samoura', 'occupation', {'concept': 'occupation'}] ['Suren Baliyan', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Frans_Masson property:occupation ?q . ?q rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant Frans Masson. Could you tell me the answer for that?
(Q3082998,P106,c(Q12737077))
Q3082998
['Q3082998', 'P106', {'concept': 'Q12737077'}]
['Frans Masson', 'occupation', {'concept': 'occupation'}]
[]
Q628099 Q37226
SYSTEM
association football manager, teacher
Q628099 Q37226
(Q3082998,P106,c(Q12737077))
action filter_type
action find
entity Q3082998
relation P106
type Q12737077
The job of that person are the [ANSWERS]
['Q3082998', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q3082998 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
association football manager teacher
The job of that person are the association football manager and teacher
association football manager teacher
action filter_type
action find
entity Frans Masson
relation occupation
type occupation
['Frans Masson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Frans_Masson property:occupation ?q . ?q rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P641
Q349 Q12973014 Q502895
USER
Which sports did exactly 19 sports teams and people participate in ?
(c(Q12973014)|c(Q502895),P641,c(Q349))
action equal
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q12973014
action find_reverse_tuple_counts
relation P641
type Q349
type Q502895
value 19
[[{'concept': 'Q12973014'}, {'concept': 'Q502895'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?l WHERE { FILTER ( ?k = 19 ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) ?l WHERE { { ?i property:P641 ?l . ?l rdf:type ontology:Q349 . ?i rdf:type ontology:Q12973014 } UNION { ?i property:P641 ?l . ?l rdf:type ontology:Q349 . ?i rdf:type ontology:Q502895 } } GROUP BY ?l } }
action equal
action union
action find_reverse_tuple_counts
relation sport
type sport
type sports team
action find_reverse_tuple_counts
relation sport
type sport
type common name
value 19
[[{'concept': 'sports team'}, {'concept': 'common name'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?l WHERE { FILTER ( ?k = 19 ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) ?l WHERE { { ?i property:sport ?l . ?l rdf:type ontology:sport . ?i rdf:type ontology:sports_team } UNION { ?i property:sport ?l . ?l rdf:type ontology:sport . ?i rdf:type ontology:common_name } } GROUP BY ?l } }
[]
sport sports team common name
Q213796 Q124100
SYSTEM
powerlifting, bodybuilding
Q213796 Q124100
(c(Q12973014)|c(Q502895),P641,c(Q349))
action equal
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q12973014
action find_reverse_tuple_counts
relation P641
type Q349
type Q502895
value 19
Exactly 19 sports teams and people participated in [ANSWERS]
[[{'concept': 'Q12973014'}, {'concept': 'Q502895'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?l WHERE { FILTER ( ?k = 19 ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) ?l WHERE { { ?i property:P641 ?l . ?l rdf:type ontology:Q349 . ?i rdf:type ontology:Q12973014 } UNION { ?i property:P641 ?l . ?l rdf:type ontology:Q349 . ?i rdf:type ontology:Q502895 } } GROUP BY ?l } }
powerlifting bodybuilding
Exactly 19 sports teams and people participated in powerlifting and bodybuilding
powerlifting bodybuilding
action equal
action union
action find_reverse_tuple_counts
relation sport
type sport
type sports team
action find_reverse_tuple_counts
relation sport
type sport
type common name
value 19
[[{'concept': 'sports team'}, {'concept': 'common name'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?l WHERE { FILTER ( ?k = 19 ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) ?l WHERE { { ?i property:sport ?l . ?l rdf:type ontology:sport . ?i rdf:type ontology:sports_team } UNION { ?i property:sport ?l . ?l rdf:type ontology:sport . ?i rdf:type ontology:common_name } } GROUP BY ?l } }
[]